-
-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (130 loc) · 3.29 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (130 loc) · 3.29 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[build-system]
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "findiff"
authors = [
{ name = "Matthias Baer" },
]
maintainers = [
{ name = "Matthias Baer", email = "matthias.r.baer@googlemail.com" },
]
description = "A Python package for finite difference derivatives in any number of dimensions."
readme = "README.md"
license = { text = "MIT" }
dependencies = [
"numpy",
"scipy",
"sympy"
]
dynamic = ["version"]
requires-python = ">=3.8"
keywords = ["finite-differences", "numerical-derivatives", "scientific-computing"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Mathematics",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/maroba/findiff"
source = "https://github.com/maroba/findiff"
Issues = "https://github.com/maroba/findiff/issues"
tracker = "https://github.com/maroba/findiff/issues"
[tool.setuptools.packages.find]
include = ["findiff"]
[tool.setuptools.dynamic]
version = { attr = "findiff.__version__" }
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
"-m", "not benchmark"
]
testpaths = "tests"
markers = [
"functional: Functional tests for stuff that the user would do",
"one_dimensional: Tests in 1D",
"periodic: Tests for periodic boundary conditions",
"invalid_args: Tests for invalid argument handling",
"default_args: Tests for default argument handling",
"grid_spec: Marker to construct grid data by fixtures",
"benchmark: Performance benchmarks (deselected by default, run with -m benchmark)"
]
[tool.coverage]
run.source_pkgs = ["findiff", "tests"]
run.branch = true
run.parallel = true
run.omit = ["tests/test_benchmark.py"]
report.exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@overload",
"@unittest.skip",
"@pytest.mark.skip",
]
[tool.tox]
requires = ["tox>=4.21"]
env_list = [
"fmt", "lint",
"3.13", "3.12", "3.11", "3.10", "3.9", "3.8",
]
[tool.tox.env_run_base]
wheel_build_env = ".pkg"
deps = [
"pytest",
"ipykernel",
"nbclient",
"matplotlib",
]
commands = [
["pytest"],
]
[tool.tox.env.docs]
deps = [
"sphinx",
"-r docs/requirements.txt",
]
commands = [
["sphinx-build", "-M", "html", "docs/source", "docs/build/"],
]
[tool.tox.env.doctest]
deps = [
"sphinx",
"-r docs/requirements.txt",
]
commands = [
["sphinx-build", "-M", "doctest", "docs/source", "docs/build/"],
]
[tool.tox.env.fmt]
package = "skip"
deps = [
"ruff",
]
commands = [
["ruff", "format", "--check", { replace = "posargs", default = ["."], extend = true }],
]
[tool.tox.env.lint]
package = "skip"
deps = [
"ruff",
]
commands = [
["ruff", "check", "--no-fix", { replace = "posargs", default = ["."], extend = true }],
]
[tool.ruff]
line-length = 88
lint.extend-select = [
"B", # flake8-bugbear
"I", # isort
"UP", # pyupgrade
]
extend-exclude = [
"docs/source/**/*.ipynb",
]