-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
66 lines (57 loc) · 1.49 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
[build-system]
requires = [
"setuptools>=45",
"setuptools_scm[toml]>=6.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120
known_local_folder = ["noisy_search", "remote", "sighandler"]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"D", # pydocstyle
"N", # pep8-naming
"B", # flake8-bugbear
"RUF100", # Unnecessary noqa directives
]
extend-ignore = ["D105", "D107"] # docstrings for magic methods
[tool.ruff.lint.extend-per-file-ignores]
"scratch/**/*.py" = ["D"] # Don't fuss with docstrings in scratch/
[tool.ruff.lint.pydocstyle]
convention = "numpy"
property-decorators = ["pytest.fixture"]
[tool.pytest.ini_options]
testpaths = "test"
addopts = "--cov-context=test --cov-report html --import-mode=prepend"
markers = ["mask_timestamp", "use_vkgdr", "cmdline_args", "spectra_per_heap", "slow"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
branch = true
command_line = "-m pytest"
source = [
"katgpucbf",
"test/",
]
[tool.coverage.html]
show_contexts = true
[tool.coverage.paths]
source = [
"src",
"*/site-packages",
]
[tool.coverage.report]
exclude_lines = [
'#\s*(pragma|PRAGMA)[:\s]?\s*(no|NO)\s*(cover|COVER)', # Default from coverage
'@(?:numba\.)?(?:njit|cfunc)', # Compiled so coverage can't see the code being executed
'@(abc\.)?abstractmethod',
]