Debian Codegraph @

pyproject.toml

raw
1 [build-system] # Require setuptool version due to https://github.com/pypa/setuptools/issues/2938
2 requires = ["setuptools>=61.0.0", "wheel"]
3
4 [project]
5 name = "adios4dolfinx"
6 version = "0.10.0.post1"
7 description = "Checkpointing functionality for DOLFINx meshes/functions with ADIOS2"
8 authors = [{ name = "Jørgen S. Dokken", email = "[email protected]" }]
9 license = { file = "LICENSE" }
10 readme = "README.md"
11 dependencies = ["fenics-dolfinx>=0.9.0", "packaging"]
12
13 [project.optional-dependencies]
14 test = ["pytest", "coverage", "ipyparallel"]
15 dev = ["pdbpp", "ipython", "mypy", "ruff"]
16 docs = [
17 "jupyter-book",
18 "ipyparallel",
19 "ipywidgets",
20 "jupytext",
21 "ipykernel<7.0.0", # Note: Remove once https://github.com/ipython/ipykernel/issues/1450 is in a release
22 "sphinx-codeautolink",
23 ]
24 all = ["adios4dolfinx[test,dev,docs]"]
25
26 [tool.pytest.ini_options]
27 addopts = ["--import-mode=importlib"]
28 testpaths = ["tests"]
29
30 [tool.mypy]
31 ignore_missing_imports = true
32 # Folders to exclude
33 exclude = ["docs/", "build/"]
34 # Folder to check with mypy
35 files = ["src", "tests"]
36
37 [tool.ruff]
38 src = ["src", "tests", "docs"]
39 line-length = 100
40 indent-width = 4
41
42 [tool.ruff.lint]
43 select = [
44 # Pyflakes
45 "F",
46 # Pycodestyle
47 "E",
48 "W",
49 # isort
50 "I001",
51 ]
52
53
54 [tool.ruff.lint.isort]
55 known-first-party = ["adios4dolfinx"]
56 known-third-party = [
57 "basix",
58 "dolfinx",
59 "ffcx",
60 "ufl",
61 "gmsh",
62 "numpy",
63 "pytest",
64 ]
65 section-order = [
66 "future",
67 "standard-library",
68 "mpi",
69 "third-party",
70 "first-party",
71 "local-folder",
72 ]
73
74 [tool.ruff.lint.isort.sections]
75 "mpi" = ["mpi4py", "petsc4py"]