-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
48 lines (42 loc) · 1.27 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
45
46
47
48
[build-system]
requires = ["setuptools<67.3", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120
target-version = ["py39"]
color = true
[tool.pylint.MASTER]
disable=[
"ungrouped-imports", "line-too-long", # Disable checks in conflict with black
"missing-module-docstring", "missing-function-docstring", "missing-class-docstring", # Don't require docstrings (yet)
"logging-fstring-interpolation",
"fixme", # Don't consider TODO as errors
"no-value-for-parameter", # seems to be buggy
# The following are basically stupid tests
"duplicate-code",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-function-args",
"too-many-instance-attributes",
"too-many-locals",
"too-many-statements",
]
ignore-patterns=[".*_pb2.py",".*_pb2_grpc.py","cog_settings.py"]
ignore-paths=[
".*/node_modules/.*",
".*/_old/.*", "_old", # The two variants seems needed depending on the platform
".*/.venv/.*", ".venv",
]
jobs=0
[tool.pylint.LOGGING]
logging-format-style="new"
[tool.pylint.FORMAT]
good-names=["i","j","k","c","h","t","w","x","id","f","to"]
[tool.pylint.Typecheck]
generated-members=["cv2", "torch"]
[tool.pytest.ini_options]
addopts = "-rfs --ignore=_old"
markers = [
"functional: mark test as functional."
]