-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
43 lines (35 loc) · 966 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
37
38
39
40
41
42
43
[tool.pytest.ini_options]
minversion = "6.2"
addopts = "-ra"
testpaths = ["tests"]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"raise NotImplementedError()",
"pragma: nocover",
"if __name__ == .__main__.:",
]
[tool.black]
line-length = 120
include = '\.pyi?$'
[tool.mypy]
files= ["src/**/*.py", "test/*.py"]
ignore_missing_imports = true
[tool.isort]
profile = 'black'
line_length = 120
known_third_party = ["numpy", "pytest", "wandb", "torch"]
known_first_party = ["nn_core"]
known_local_folder = "rae"
[tool.pydocstyle]
convention = 'google'
# ignore all missing docs errors
add-ignore = ['D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D106', 'D107']
[tool.bandit]
skips = ["B101"]
[tool.setuptools_scm]
write_to = "src/rae/_version.py"
write_to_template = '__version__ = "{version}"'
[build-system]
requires = ["setuptools==59.5", "wheel", "setuptools_scm[toml]>=6.3.1"]
build-backend = "setuptools.build_meta"