forked from cogment/cogment-verse
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
37 lines (35 loc) · 1.12 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
[tool.black]
line-length = 120
target-version = ["py39"]
extend-exclude = '''
/(
.*/third_party/.*
)/
'''
color = true
[tool.pylint.MASTER]
disable=[
"C0330", "C0326", "C0199", "C0412", # Disable checks in conflict with black
"line-too-long", # Dealt with by black
"import-error", "no-name-in-module", # Import checks don't work given the way the projects are setup
"missing-module-docstring", "missing-function-docstring", "missing-class-docstring", # Don't require docstrings for this demo code
"logging-fstring-interpolation",
"broad-except",
"too-few-public-methods",
"too-many-arguments",
"too-many-locals",
"too-many-statements",
"too-many-branches",
"too-many-function-args",
"too-many-instance-attributes",
"attribute-defined-outside-init", # seems to be buggy
"fixme", # Don't consider TODO as errors
"duplicate-code", # This is a stupid test
]
ignore-patterns=[".*_pb2.py",".*_pb2_grpc.py","cog_settings.py"]
ignore-paths=[".*/third_party/.*", ".*/node_modules/.*"]
jobs=0
[tool.pylint.LOGGING]
logging-format-style="new"
[tool.pylint.FORMAT]
good-names=["i","j","k","c","h","w","x","id","f","to"]