summaryrefslogtreecommitdiffstats
path: root/setup.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg22
1 files changed, 13 insertions, 9 deletions
diff --git a/setup.cfg b/setup.cfg
index b4071f53e..9403fb0cb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -27,15 +27,19 @@ frameworks = CoreFoundation, Foundation, AppKit
[flake8]
max-line-length = 120
builtins = _,_n,__request__
-exclude = .git,.tox,.eggs,dist,build
-ignore =
-# A003 Class attribute is a python builtin.
+extend-exclude = dist,build
+extend-ignore =
+# flake8-builtins: A003 class attribute is shadowing a python builtin
A003,
-# C813, C815, C816: PY3 missing trailing commas.
- C813,C815,C816,
-# W503 line break before binary operator.
- W503,
- E203
-
+# E203 whitespace before ':'
+ E203,
+# N818 pep8-naming: error suffix in exception names
+ N818
+per-file-ignores =
+# import not top of file (gi checks required before import)
+ deluge/ui/gtk3/*.py : E402
+ deluge/**/gtkui.py: E402
+ deluge/**/gtkui/*.py: E402
+ deluge/plugins/Stats/deluge_stats/graph.py: E402
[pycodestyle]
max-line-length = 88