-
Notifications
You must be signed in to change notification settings - Fork 755
/
pyproject.toml
56 lines (48 loc) · 1.02 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
49
50
51
52
53
54
55
56
[tool.black]
target-version = ['py38']
line-length = 79
[tool.pytest.ini_options]
minversion = "6.0"
timeout = 60
addopts = """
--color=yes
--doctest-modules
--ignore src/gluonts/block.py
--ignore src/gluonts/distribution.py
--ignore src/gluonts/kernels.py
--ignore src/gluonts/representation.py
--ignore src/gluonts/trainer.py
"""
doctest_optionflags = "NORMALIZE_WHITESPACE"
testpaths = "test"
filterwarnings = "ignore"
[tool.ruff]
line-length = 79
lint.ignore = [
"E501", # line-length is handled by black
"E741" # TODO: remove usage of `l`
]
exclude = ["src/gluonts/nursery"]
[tool.docformatter]
black = true
pre-summary-newline = true
make-summary-multi-line = true
wrap-descriptions = 79
[tool.mypy]
ignore_missing_imports = true
allow_redefinition = true
follow_imports = "silent"
[tool.isort]
known_first_party = "gluonts"
known_third_party = [
"mxnet",
"numpy",
"pandas",
"pytest",
"scipy",
"tqdm",
"torch",
"lightning",
]
line_length = 79
profile = "black"