diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2022-02-13 13:31:41 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2022-02-13 14:38:27 +0100 |
commit | 2ec6e10c8eb87a6f4e2a49afd58485adb13702a5 (patch) | |
tree | 042411bdc547f8b7f002b29b6765eff82e425957 /setup.cfg | |
parent | [Core] Stopped using libtorrent deprecated functions (diff) | |
download | deluge-2ec6e10c8eb87a6f4e2a49afd58485adb13702a5.tar.xz deluge-2ec6e10c8eb87a6f4e2a49afd58485adb13702a5.zip |
[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
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -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 |