-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
70 lines (64 loc) · 1.58 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
[build-system] # Require setuptool version due to https://github.com/pypa/setuptools/issues/2938
requires = ["setuptools>=61.0.0", "pip>=23.1"]
[project]
name = "dolfinx-external-operator"
version = "0.10.0.dev0"
description = "An implementation of ufl.ExternalOperator for DOLFINx"
authors = [
{ name = "Andrey Latyshev", email = "andrey.latyshev@uni.lu" },
{ name = "Jack S. Hale", email = "jack.hale@uni.lu" },
]
license = { file = "LICENSE" }
readme = "README.md"
dependencies = [
"fenics-dolfinx>=0.10.0.dev0,<=0.11.0",
"fenics-ufl>=2024.3.0.dev0,<=2024.4.0",
]
[project.optional-dependencies]
doc = ["jupyter-book", "jupytext"]
demo = ["gmsh", "numba", "jax[cpu]", "pyvista", "mpltools"]
test = ["pytest"]
lint = ["ruff"]
ci = [
"dolfinx-external-operator[doc]",
"dolfinx-external-operator[demo]",
"dolfinx-external-operator[test]",
"dolfinx-external-operator[lint]",
]
[tool.ruff]
line-length = 120
indent-width = 4
lint.select = [
# "B",
# "D", # pydocstyle
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"RUF", # Ruff-specific rules
"UP", # pyupgrade
# "ANN",
"ICN",
# "SIM",
# "PL",
]
lint.ignore = []
[tool.ruff.lint.isort]
known-first-party = [
"basix",
"dolfinx",
"ffcx",
"ufl",
"dolfinx_external_operator",
]
known-third-party = ["gmsh", "numba", "numpy", "pytest", "pyvista"]
section-order = [
"future",
"standard-library",
"mpi",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
"mpi" = ["mpi4py", "petsc4py"]