-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (68 loc) · 1.96 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
76
77
78
79
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "jafit"
authors = [
{name = "Pavel Kirienko", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"numpy ~= 2.0",
"scipy ~= 1.15",
"matplotlib ~= 3.10",
"numba", # For JIT compilation, not functionally significant
]
[project.optional-dependencies]
interactive = [
"dash ~= 2.18",
]
[project.scripts]
jafit = "jafit.jafit:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.dynamic]
version = { attr = "jafit.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["data", "data.*"]
# -------------------------------------------------- PYTEST --------------------------------------------------
[tool.pytest.ini_options]
testpaths = "src"
python_files = "*.py"
log_level = "DEBUG"
log_cli_level = "WARNING"
log_cli = true
log_file = "pytest.log"
addopts = "--doctest-modules -v --ignore=noxfile.py"
# -------------------------------------------------- COVERAGE --------------------------------------------------
[tool.coverage.run]
data_file = ".coverage"
branch = true
parallel = true
# -------------------------------------------------- MYPY --------------------------------------------------
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
show_error_context = true
mypy_path = []
[[tool.mypy.overrides]]
module = ["scipy", "scipy.*", "matplotlib", "numba", "traitlets.*", "dash", "dash.*", "plotly.*"]
ignore_missing_imports = true
# -------------------------------------------------- BLACK --------------------------------------------------
[tool.black]
line-length = 120
target-version = ['py313']
include = '''
(jafit/.*\.pyi?$)
|
(noxfile.py$)
'''