forked from facebookresearch/nle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
36 lines (34 loc) · 996 Bytes
/
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
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| src
| win/rl/nethack_rl
)/
'''
[tool.isort]
force_single_line = true
profile = "black"
skip_glob = "**/__init__.py"
[tool.pylint.messages_control]
disable = [
"missing-class-docstring",
"invalid-name", # pylint is very strict.
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"c-extension-no-member",
"no-member", # too many false positives.
]
[tool.pylint.typecheck]
generated-members=["numpy.*", "torch.*", "nle._pynethack.*"]
[tool.pylint.design]
max-args=15 # Maximum number of arguments for function / method.
max-attributes=50 # Maximum number of attributes for a class (see R0902).
max-bool-expr=5 # Maximum number of boolean expressions in an if statement (see R0916).
max-branches=15 # Maximum number of branch for function / method body.
max-locals=30 # Maximum number of locals for function / method body.