/
pyproject.toml
53 lines (42 loc) · 1.24 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
[tool.ruff]
target-version = "py311"
select = ["ALL"]
fix = true
extend-ignore = [
"PLR0133", # Constants being compared, always happening with cookiecutter.
"S603", # `subprocess` call: check for execution of untrusted input
"S607", # Starting a process with a partial executable path
]
exclude = [
"docs/scripts"
]
[tool.ruff.per-file-ignores]
"tests/*" = ["S101", "ANN", "D100", "D103"]
"hooks/post_gen_project.py" = ["C901", "PLR0912", "T201"]
"docs/source/conf.py" = ["DTZ005", "D100"]
"docs/source/__init__.py" = ["D104"]
"hooks/__init__.py" = ["D104"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.nbqa.config]
black = "pyproject.toml"
[tool.nbqa.mutate]
black = 1
[tool.pytest.ini_options]
filterwarnings = []
addopts = ["--doctest-modules"]
markers = [
"wip: Tests that are work-in-progress.",
"unit: Flag for unit tests which target mainly a single function.",
"integration: Flag for integration tests which may comprise of multiple unit tests.",
"end_to_end: Flag for tests that cover the whole program.",
]
norecursedirs = ["docs", "{{cookiecutter.project_slug}}"]
[tool.coverage.report]
omit = [
"{{cookiecutter.project_slug}}",
"docs",
]
[tool.yamlfix]
line_length = 88
none_representation = "null"