]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
python: Add flake8 configuration
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 31 Oct 2022 17:07:26 +0000 (11:07 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 31 Oct 2022 17:07:28 +0000 (11:07 -0600)
flake8 Python lint tool, allows us to customize and extend the rules.
Add our own rule to allow a 100-character width in the sources.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 5eee3084f292819011f08f8e9fa6a944e0575f17)

.flake8 [new file with mode: 0644]

diff --git a/.flake8 b/.flake8
new file mode 100644 (file)
index 0000000..7da1f96
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,2 @@
+[flake8]
+max-line-length = 100