diff mbox series

migrations: ignore flake8 on 0041_python3

Message ID 20210819030643.1061191-1-dja@axtens.net
State Accepted
Commit 77793ad6ebc8469a7af9b3be05b4f7e21c389b57
Headers show
Series migrations: ignore flake8 on 0041_python3 | expand

Commit Message

Daniel Axtens Aug. 19, 2021, 3:06 a.m. UTC
commit 3a979ed8bfc6 ("migrations: don't go to the db for 0041_python3 migration")
made a bunch of strings go past 79 characters, breaking flake8 checks.

`black` doesn't seem to fix this and reflowing the strings manually is
error-prone.

We're not really expecting future changes to this file so just don't run
flake8 against it.

Fixes: 3a979ed8bfc6 ("migrations: don't go to the db for 0041_python3 migration")
Signed-off-by: Daniel Axtens <dja@axtens.net>
---
 patchwork/migrations/0041_python3.py | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Daniel Axtens Aug. 23, 2021, 2:06 a.m. UTC | #1
Applied.

Daniel Axtens <dja@axtens.net> writes:

> commit 3a979ed8bfc6 ("migrations: don't go to the db for 0041_python3 migration")
> made a bunch of strings go past 79 characters, breaking flake8 checks.
>
> `black` doesn't seem to fix this and reflowing the strings manually is
> error-prone.
>
> We're not really expecting future changes to this file so just don't run
> flake8 against it.
>
> Fixes: 3a979ed8bfc6 ("migrations: don't go to the db for 0041_python3 migration")
> Signed-off-by: Daniel Axtens <dja@axtens.net>
> ---
>  patchwork/migrations/0041_python3.py | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/patchwork/migrations/0041_python3.py b/patchwork/migrations/0041_python3.py
> index 25d5de4b66e3..b9316bac04ea 100644
> --- a/patchwork/migrations/0041_python3.py
> +++ b/patchwork/migrations/0041_python3.py
> @@ -1,3 +1,11 @@
> +# commit 3a979ed8bfc6 ("migrations: don't go to the db for 0041_python3 migration")
> +# made a bunch of strings go past 79 characters, breaking flake8 checks.
> +#
> +# We're not really expecting future changes to this file so just don't run
> +# flake8 against it.
> +#
> +# flake8: noqa
> +
>  import datetime
>  
>  from django.conf import settings
> -- 
> 2.30.2
diff mbox series

Patch

diff --git a/patchwork/migrations/0041_python3.py b/patchwork/migrations/0041_python3.py
index 25d5de4b66e3..b9316bac04ea 100644
--- a/patchwork/migrations/0041_python3.py
+++ b/patchwork/migrations/0041_python3.py
@@ -1,3 +1,11 @@ 
+# commit 3a979ed8bfc6 ("migrations: don't go to the db for 0041_python3 migration")
+# made a bunch of strings go past 79 characters, breaking flake8 checks.
+#
+# We're not really expecting future changes to this file so just don't run
+# flake8 against it.
+#
+# flake8: noqa
+
 import datetime
 
 from django.conf import settings