-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
189 lines (175 loc) · 4.18 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
"setuptools-scm",
]
[project]
authors = [
{email = "arc.collaborations@ucl.ac.uk", name = "UCL Advanced Research Computing Centre Collaborations team"},
]
classifiers = [
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dependencies = [
"dxh@git+https://github.com/UCL/dxh",
"fenics-dolfinx>=0.6",
"fenics-ufl",
"gmsh",
"h5py",
"matplotlib",
"meshio",
"mpi4py",
"numpy",
"packaging",
"petsc4py",
"scipy",
"sympy",
]
description = "DOLFINx solvers on space-time finite element spaces"
dynamic = [
"version",
]
keywords = [
]
name = "dxss"
readme = "README.md"
requires-python = ">=3.9"
license.file = "LICENSE.md"
[project.optional-dependencies]
dev = [
"black",
"build",
"mypy",
"pre-commit",
"pydata-sphinx-theme",
"pytest",
"pytest-cov",
"pytest-mock",
"ruff",
"sphinx",
"sphinx_autodoc_typehints",
"tox",
"twine",
]
pypardiso = ["pypardiso"]
[project.urls]
homepage = "https://github.com/UCL/dxss"
[tool.coverage]
report = {skip_covered = true, sort = "cover"}
run = {branch = true, parallel = true, relative_files = true, source = [
"dxss",
]}
paths.source = [
"src",
".tox*/*/lib/python*/site-packages",
]
[tool.mypy]
explicit_package_bases = true
plugins = [
"numpy.typing.mypy_plugin",
"pydantic.mypy",
]
[tool.pytest.ini_options]
addopts = "--color=yes -v"
testpaths = [
"tests",
]
[tool.ruff]
fix = true
force-exclude = true
ignore = [
"ANN", # temporarily ignore flake8 annotation warnings (missing type hints is fine for now)
"D10", # _temporarily_ ignore **all** missing doc warnings (TODO: revert this once #15 is fixed)
"D203", # no-blank-line-before-class
"D212", # multi-line-summary-first-line
"D417", # argument description in docstring (unreliable)
"E501", # line too long (handled by black)
"FBT00", # bool values in function calls or positional arguments (TODO: these can be solved by better design)
"FIX002", # TODOs are fine
"PLR2004", # magic values in comparisons
"RET505", # superfluous else return,
"T201", # print
"TD002",
"TD003", # TODOs are fine
"UP007", # X | Y for type annotations (Python 3.10+ only)
]
per-file-ignores = {"conf.py" = ["INP001"], "test_*" = [
"D103",
"INP001",
"S101",
]}
select = [
"ALL",
"I001",
"I002",
]
target-version = "py39"
isort.known-first-party = [
"dxss",
]
mccabe.max-complexity = 18
pep8-naming.classmethod-decorators = [
"classmethod",
"pydantic.validator",
]
pydocstyle.convention = "google"
pylint.max-args = 10
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/dxss/_version.py"
[tool.tomlsort]
all = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
overrides."project.classifiers".inline_arrays = false
overrides."tool.coverage.paths.source".inline_arrays = false
[tool.tox]
legacy_tox_ini = """
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
conda_deps =
dolfinx06: fenics-dolfinx==0.6.*
dolfinx07: fenics-dolfinx==0.7.*
docs: fenics-dolfinx
# Install gmsh with conda to avoid error
# libGLU.so.1: cannot open shared object file: No such file or directory
# when libGLU not installed natively on system
gmsh
pardiso: pypardiso
conda_channels =
conda-forge
[testenv:test-py{39,310,311,312}-dolfinx{06,07}-{petsc,pardiso}]
commands =
pytest -s --cov --cov-report=xml
deps =
pytest
pytest-cov
pytest-mock
[testenv:docs]
commands =
sphinx-apidoc -o docs src/ -T
sphinx-build -W -b html docs docs/_build/html
deps =
sphinx
pydata-sphinx-theme
sphinx-autodoc-typehints
[tox]
envlist =
test-py{39,310}-dolfinx{06,07}-{petsc,pardiso}
test-py{311,312}-dolfinx07-{petsc,pardiso}
isolated_build = true
requires = tox-conda
"""