-
Notifications
You must be signed in to change notification settings - Fork 47
/
pyproject.toml
75 lines (72 loc) · 1.29 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#############################
# Build System Requirements #
#############################
[build-system]
requires = [
"setuptools >= 68.2.0",
"wheel >= 0.41.2",
]
build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 79
exclude = ["amici_models"]
extend-include = ["*.ipynb"]
lint.ignore = [
"B027",
"D100",
"D105",
"D107",
"D202",
"E501",
"F403",
"F405",
"D413"
]
lint.select = [
"F", # Pyflakes
"I", # isort
"D", # pydocstyle (PEP 257)
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T20", # flake8-print
"W", # pycodestyle Warnings
"E", # pycodestyle Errors
"UP", # pyupgrade
# "ANN", # flakes-annotations TODO: currently produces ~1500 errors to manual fix
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.per-file-ignores]
"test/julia/test_pyjulia.py" = ["E402"]
"pypesto/C.py" = [
"D400",
"D205",
]
"*/__init__.py" = [
"F401",
"D400",
"D205",
]
"pypesto/logging.py" = [
"D400",
"D205",
]
"test/*" = [
"T201",
"S101",
"D",
]
"pypesto/util.py" = [
"D400",
"D205",
]
"doc/example/*.py" = [ # ignore docstyle in example pthon files.
"D",
]
"doc/conf.py" = [
"E402",
]
"*.ipynb" = [
"T20", "E402", "D"
]