]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
python: add cython-lint configuration file
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 10 Jul 2023 04:43:47 +0000 (10:13 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 12 Jul 2023 18:57:31 +0000 (12:57 -0600)
Add configuration for cython-lint, to ignore errors such as:
- Allowed length of line to be 100
- Ignore error code 'E128' continuation line under-indented for visual
  indent

Cython-lint is available https://github.com/MarcoGorelli/cython-lint,
expects the file name to be pyproject.toml

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/python/pyproject.toml [new file with mode: 0644]

diff --git a/src/python/pyproject.toml b/src/python/pyproject.toml
new file mode 100644 (file)
index 0000000..74b602f
--- /dev/null
@@ -0,0 +1,4 @@
+[tool.cython-lint]
+max-line-length = 100
+# E128 - continuation line under-indented for visual indent
+ignore = ['E128']