]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
add flake8 config
authorPierce Lopez <pierce.lopez@gmail.com>
Mon, 1 Jan 2018 18:42:52 +0000 (13:42 -0500)
committerPierce Lopez <pierce.lopez@gmail.com>
Mon, 1 Jan 2018 20:54:53 +0000 (15:54 -0500)
ignore some style checks and subdirectories

.flake8 [new file with mode: 0644]

diff --git a/.flake8 b/.flake8
new file mode 100644 (file)
index 0000000..be0cadd
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,16 @@
+[flake8]
+exclude = .git,.tox,__pycache__
+max-line-length = 100
+ignore =
+    # E231 missing whitespace after ','
+    E231,
+    # E265 block comment should start with '# '
+    E265,
+    # E266 too many leading '#' for block comment
+    E266,
+    # E402 module level import not at top of file
+    E402,
+    # E722 do not use bare except
+    E722,
+    # E741 ambiguous variable name 'l'
+    E741,