[elbe-devel] [PATCH 5/6] tests: flake8-spdx: provide name and version

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Jul 15 15:15:17 CEST 2024


Custom plugins should provide their name and version.
While newer versions of flake8 can handle their absence,
older ones don't.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 tests/flake8/spdx.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/flake8/spdx.py b/tests/flake8/spdx.py
index 50f8d58a9557..06b05b67776a 100644
--- a/tests/flake8/spdx.py
+++ b/tests/flake8/spdx.py
@@ -3,6 +3,9 @@
 # SPDX-FileCopyrightText: 2024 Linutronix GmbH
 
 class SPDXChecker:
+    name = 'spdx'
+    version = '0.0.0'
+
     def __init__(self, tree, lines):
         self.lines = lines
 

-- 
2.45.2



More information about the elbe-devel mailing list