[PATCH] migrations: ignore flake8 on 0041_python3

Daniel Axtens dja at axtens.net
Mon Aug 23 12:06:01 AEST 2021


Applied.

Daniel Axtens <dja at 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 at 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


More information about the Patchwork mailing list