From 2ec6e10c8eb87a6f4e2a49afd58485adb13702a5 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 13 Feb 2022 12:31:41 +0000 Subject: [Lint] Update linter version and fix issues Notable changes: * Prettier >=2.3 with more consistent js assignments * Black now formats docstrings * Added isort to list of autoformaters * Update flake8 config for v4 Ref: https://prettier.io/blog/2021/05/09/2.3.0.html --- setup.cfg | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'setup.cfg') 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 -- cgit v1.2.3