-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
95 lines (79 loc) · 2.35 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[project]
name = "spexial"
dynamic = ["version"]
description = "scipy.special in JAX."
readme = "README.md"
license.file = "LICENSE"
requires-python = ">=3.11"
dependencies = [
"jax>=0.4.34",
"jaxlib>=0.4.34",
"jaxtyping>=0.2.34",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch]
build.hooks.vcs.version-file = "src/spexial/_version.py"
version.source = "vcs"
[tool.coverage]
report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:']
run.source = ["spexial"]
[tool.mypy]
strict = false
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
warn_unused_configs = true
files = ["src"]
[tool.pytest.ini_options]
minversion = "7"
log_cli_level = "INFO"
addopts = [
"--showlocals",
"--strict-config",
"--strict-markers",
"-p no:doctest", # using sybil
"-ra",
]
filterwarnings = [
"error",
"ignore:Attribute s is deprecated and will be removed in Python 3\\.14:DeprecationWarning", # from Sybil
"ignore:ast\\.Str is deprecated and will be removed in Python 3\\.14:DeprecationWarning", # from Sybil
# jax
"ignore:jax\\.core\\.pp_eqn_rules is deprecated:DeprecationWarning",
]
testpaths = ["docs", "src/", "tests/"]
xfail_strict = true
env = [
"JAX_ENABLE_X64=True"
]
[tool.ruff]
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"ANN401", # Dynamically typed expressions
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"F722", # Syntax error in forward annotation (jaxtyping)
"FIX002", # Line contains TODO, consider resolving the issue"
"PD", # Pandas
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
]
[tool.ruff.lint.per-file-ignores]
"src/spexial/_version.py" = ["SIM108"]
"src/spexial/_src/gegenbauer.py" = ["ANN001", "ANN202", "ARG001", "D205", "D400", "D401", "D415", "N802", "N803", "N806"]
"docs/*.py" = ["D104"]
"tests/*.py" = ["ANN", "S101"]
[tool.ruff.lint.isort]
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
known-local-folder = ["spexial"]
[tool.uv]
dev-dependencies = [
"hypothesis>=6.115.3",
"pytest-cov>=5.0.0",
"pytest-env>=1.1.5",
"pytest>=8.3.3",
"sybil>=8.0.0",
]