forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
48 lines (47 loc) · 2 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[flake8]
max-complexity = 16
extend-select = A50,E,W1,W2,W3,W504,W505,W6,B,DJ
enable-extensions = B,C,D,DJ,F,G,I,M,N,R,SF,T,UPS
# Should be fixed:
# D10 - we are missing many docstrings
# D401 - many strings need rephrasing
# DJ04 - use underscores in URLs
# DJ05 - namespace in URLs include
# E501 - obsolete by black?
# Wontfix:
# A001,A002,A003 - the names are mostlu coming from outside APIs
# False positives:
# T202 (removed in ruff)
# R504 - see https://github.com/Afonasev/flake8-return/issues/3
# SF01 - see https://github.com/Korijn/flake8-self/issues/3
# E203 - see https://github.com/psf/black/issues/315
# N818 - we do not want all exceptions to end up their name with Error
extend-ignore = E203,DJ04,DJ05,R504,D10,D401,SF01,N818,A003,A002,A001,E501,T202
exclude = settings.py,.git,data,data-test,.venv*,build,node_modules
max-line-length = 88
assertive-test-pattern = **/test_*.py
per-file-ignores =
docs/conf.py:E800
weblate/lang/data.py:E501
weblate/utils/licensedata.py:E501
weblate/settings_*.py:F405
weblate/settings_example.py:E800
weblate/settings_docker.py:E800
weblate/*/migrations/*.py:C405,E501,N806,DJ01,DJ02
weblate/addons/utils.py:N806
weblate/utils/locale.py:B012
scripts/*:T201,T203
weblate/utils/generate_secret_key.py:T201
weblate/trans/migrations/0103_update_source_unit.py:T201,N806
weblate/trans/migrations/0116_migrate_glossaries.py:T201,N806,E501
weblate/trans/migrations/0127_fix_source_glossary.py:T201,N806
weblate/trans/migrations/0133_glossary_missing_files.py:T201,N806
weblate/auth/migrations/0018_fixup_role.py:T201,N806
weblate/metrics/migrations/0015_migrate_metrics.py:T201,N806
weblate/addons/management/commands/list_addons.py:E501
weblate/machinery/management/commands/list_machinery.py:E501
weblate/trans/tests/test_files.py:E501
[pycodestyle]
extend-select = E,W1,W2,W3,W504,W505,W6
exclude = migrations,settings.py,settings_test.py,.git,data,data-test,docs,.venv*,build,node_modules
max-line-length = 88