generated from scientificcomputing/example-python-package
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
78 lines (62 loc) · 1.57 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
[build-system] # Require setuptool version due to https://github.com/pypa/setuptools/issues/2938
requires = ["setuptools>=64.4.0", "wheel"]
[project]
name = "OasisX"
authors = [{ name = "Jørgen S. Dokken", email = "[email protected]" }]
version = "1.2.0.dev0"
description = "A modern implementation of Oasis"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
dependencies = ['numpy', 'fenics-dolfinx>0.9.0']
[project.scripts]
oasisx = "oasisx.__main__:main"
[project.optional-dependencies]
test = ["ruff", "mypy", "pytest", "pytest-cov", "isort", "scipy"]
docs = ["jupyter-book", "jupytext", "seaborn", "docutils"]
binder = ["jupyterlab", "notebook"]
[tool.mypy]
ignore_missing_imports = true # Does not show errors when importing untyped libraries
exclude = ["docs/_build", "build/"]
files = ["src", "test"]
[tool.pytest.ini_options]
addopts = "--cov=oasisx --cov-report html --cov-append --cov-report term-missing -v"
testpaths = ["test"]
[tool.jupytext.formats]
"docs/" = "ipynb"
"demo/" = "py:light"
[tool.ruff]
src = ["src", "test", "demo"]
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I001",
]
[tool.ruff.lint.isort]
known-first-party = ["oasisx"]
known-third-party = [
"basix",
"dolfinx",
"ffcx",
"ufl",
"gmsh",
"numpy",
"pytest",
]
section-order = [
"future",
"standard-library",
"mpi",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
"mpi" = ["mpi4py", "petsc4py"]