[elbe-devel] [PATCH 28/37] flake8: Module level import not at top of file (E402)

Eduard Krein eduard.krein at linutronix.de
Wed Feb 7 16:31:32 CET 2024


Am Mittwoch, dem 07.02.2024 um 15:28 +0100 schrieb Benedikt Spranger:
> flake8 complains about error E402, but the readability of the
> configuration file veto a change. Restructure the configuration to
> avoid
> one warning and annotate the other one.
> 
> Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
Reviewed-by: Eduard Krein <eduard.krein at linutronix.de>
> ---
>  docs/conf.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/conf.py b/docs/conf.py
> index 8c070b47..5c31a547 100644
> --- a/docs/conf.py
> +++ b/docs/conf.py
> @@ -58,9 +58,9 @@ author = u'Torben Hohn, Manuel Traut'
>  # built documents.
>  #
>  # The short X.Y version.
> -from elbepack.version import elbe_version as version
> +from elbepack.version import elbe_version as version  # noqa: E402
>  # The full version, including alpha/beta/rc tags.
> -from elbepack.version import elbe_version as release
> +release = version
>  
>  # The language for content autogenerated by Sphinx. Refer to
> documentation
>  # for a list of supported languages.

-- 
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br.,HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas
Gleixner, Sharon Heck, Yulia Beck, Tiffany Silva




More information about the elbe-devel mailing list