summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/flake8.ini
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/tools/flake8.ini
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/tools/flake8.ini')
-rw-r--r--testing/web-platform/tests/tools/flake8.ini26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/flake8.ini b/testing/web-platform/tests/tools/flake8.ini
new file mode 100644
index 0000000000..9b745acccd
--- /dev/null
+++ b/testing/web-platform/tests/tools/flake8.ini
@@ -0,0 +1,26 @@
+[flake8]
+select = E,W,F,N
+# E128: continuation line under-indented for visual indent
+# E129: visually indented line with same indent as next logical line
+# E226: missing whitespace around arithmetic operator
+# E231: missing whitespace after ‘,’, ‘;’, or ‘:’
+# E251: unexpected spaces around keyword / parameter equals
+# E265: block comment should start with ‘# ‘
+# E302: expected 2 blank lines, found 0
+# E303: too many blank lines (3)
+# E305: expected 2 blank lines after end of function or class
+# E402: module level import not at top of file
+# E731: do not assign a lambda expression, use a def
+# W504: line break after binary operator
+# W601: .has_key() is deprecated, use ‘in’
+# N801: class names should use CapWords convention
+# N802: function name should be lowercase
+# N806: variable in function should be lowercase
+# N818: exception should be named with an Error suffix
+ignore = E128,E129,E226,E231,E251,E265,E302,E303,E305,E402,E731,W504,W601,N801,N802,N806,N818
+exclude =
+ .tox,
+ third_party,
+ wptserve/docs/conf.py,
+ wptserve/tests/functional/docroot/invalid.py
+max-line-length = 141