This repository has been archived by the owner on Jul 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
74 lines (65 loc) · 1.78 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "dolfiny"
version = "0.8.0"
description = "dolfiny: high-level wrappers for DOLFINx"
readme = "README.md"
requires-python = ">=3.10.0"
authors = [
{name = "Andreas Zilian", email = "andreas.zilian@uni.lu"},
{name = "Michal Habera", email = "michal.habera@gmail.com"},
]
dependencies = ["fenics-dolfinx>=0.8.0,<0.9.0"]
[project.optional-dependencies]
dev = ["mypy", "ruff"]
vis = ["matplotlib", "pyvista>=0.43.0"]
jit = ["numba", "cppyy>=3.1.0"]
test = ["dolfiny[jit,vis]", "pytest"]
demo = ["dolfiny[jit,vis]"]
all = ["dolfiny[test,demo,dev]"]
[tool.setuptools.package-data]
dolfiny = ["localsolver.h"]
[tool.mypy]
disallow_untyped_defs = false
disallow_any_unimported = false
no_implicit_optional = false
check_untyped_defs = false
warn_return_any = false
warn_unused_ignores = false
show_error_codes = true
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
]
allowed-confusables = ["σ", "×"]
[tool.ruff.lint.isort]
known-first-party = ["dolfiny"]
known-third-party = ["cppyy", "gmsh", "numba", "numpy", "pytest", "pyvista"]
section-order = [
"future",
"standard-library",
"mpi",
"fenics",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
"mpi" = ["mpi4py", "petsc4py"]
"fenics" = ["basix", "dolfinx", "ffcx", "ufl"]
[tool.pytest.ini_options]
addopts = ["--color=yes"]