-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
44 lines (39 loc) · 1.22 KB
/
pyproject.toml
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
[tool.black]
line-length = 79
target-version = ["py310"]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
known_first_party = ["trcustoms"]
[tool.pylint.master]
jobs = 0
[tool.pylint.format]
max-line-length = 79
[tool.pylint.messages_control]
reports = "no"
disable = [
"import-error",
"too-few-public-methods",
"use-dict-literal",
"missing-docstring",
"unused-argument", # we can't rename positional arguments in frameworks…
"duplicate-code", # false positives in imports…
"invalid-name", # migrations
"too-many-instance-attributes", # models
"too-many-arguments", # pytest fixtures
"too-many-locals", # pytest fixtures
"broad-except", # this does more harm than good
"unexpected-keyword-arg", # badly implemented in decorators…
"unsupported-binary-operation", # fails to handle DRF permissions…
"protected-access", # _meta
"too-many-ancestors", # how else am I supposed to use DRF mixins
"fixme", # my time is too precious to deal with everything at once
"consider-iterating-dictionary", # useless advice
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "trcustoms.settings"
norecursedirs = [
"cache",
"pgdata",
"uploads",
]