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

Benedikt Spranger b.spranger at linutronix.de
Wed Feb 7 15:28:55 CET 2024


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>
---
 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.
-- 
2.43.0



More information about the elbe-devel mailing list