-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
60 lines (48 loc) · 1.27 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
[build-system]
requires = ["setuptools>=64.4.0", "wheel", "pip>=22.3"]
build-backend = "setuptools.build_meta"
[project]
name = "FEniCS22_Tutorial"
version = "0.8.0"
dependencies = [
"fenics-dolfinx>=0.8.0", "pyvista[jupyter]", "imageio"
]
[project.optional-dependencies]
dev = ["jupyter-book", "ruff", "mypy"]
[tool.setuptools]
packages = []
[tool.jupytext]
formats = "ipynb,py:percent"
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"I", # isort - use standalone isort
"RUF", # Ruff-specific rules
"UP", # pyupgrade
"ICN", # flake8-import-conventions
"NPY", # numpy-specific rules
"FLY", # use f-string not static joins
"NPY201", # numpy 2.x ruleset
]
ignore = ["UP007", "RUF012"]
allowed-confusables = ["σ"]
[tool.ruff.lint.isort]
known-first-party = ["basix", "dolfinx", "ffcx", "ufl"]
known-third-party = ["gmsh", "numba", "numpy", "pytest", "pyvista", "pyamg"]
section-order = [
"future",
"standard-library",
"mpi",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
"mpi" = ["mpi4py", "petsc4py"]