-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
144 lines (131 loc) · 3.38 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[build-system]
requires = [
"fenics-dolfinx >=0.10.0.dev0, <0.11.0",
"mpi4py",
"nanobind >= 2.1.0",
"petsc4py",
"scikit-build-core[pyproject]"
]
build-backend = "scikit_build_core.build"
[project]
name = "multiphenicsx"
version = "0.3.dev1"
authors = [
{name = "Francesco Ballarin", email = "[email protected]"},
]
maintainers = [
{name = "Francesco Ballarin", email = "[email protected]"},
]
description = "Easy prototyping of multiphysics problems on conforming meshes in FEniCSx"
license = {file = "COPYING"}
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"fenics-dolfinx",
"mpi4py",
"numpy >= 1.21.0",
"petsc4py"
]
[project.urls]
homepage = "https://multiphenics.github.io"
repository = "https://github.com/multiphenics/multiphenicsx"
issues = "https://github.com/multiphenics/multiphenicsx/issues"
funding = "https://github.com/sponsors/francesco-ballarin"
[project.optional-dependencies]
docs = [
"sphinx"
]
lint = [
"clang-format",
"cmakelang",
"isort",
"mypy",
"nbqa",
"ruff",
"yamllint"
]
tests = [
"coverage[toml]",
"nbvalx[unit-tests]",
"pytest",
"scipy"
]
tutorials = [
"gmsh",
"nbvalx[notebooks]",
"scipy",
"slepc4py",
"sympy",
"viskex @ git+https://github.com/viskex/viskex.git"
]
[tool.isort]
line_length = 120
multi_line_output = 4
order_by_type = false
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
implicit_reexport = true
no_implicit_optional = true
pretty = true
show_error_codes = true
strict = true
warn_return_any = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"dolfinx.cpp",
"gmsh",
"ipyparallel",
"matplotlib",
"matplotlib.*",
"mpl_toolkits.*",
"petsc4py",
"petsc4py.PETSc",
"plotly",
"plotly.*",
"scipy",
"scipy.*",
"slepc4py",
"slepc4py.SLEPc",
"sympy",
"ufl"
]
ignore_missing_imports = true
[tool.pytest.ini_options]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ANN", "D", "E", "F", "FLY", "ICN", "N", "NPY", "Q", "RUF", "UP", "W"]
ignore = ["ANN101"]
exclude = ["*.ipynb"]
[tool.ruff.lint.per-file-ignores]
"multiphenicsx/**/__init__.py" = ["F401"]
"multiphenicsx/fem/petsc.py" = ["N801", "N802", "N803", "N806"]
"tests/unit/fem/*.py" = ["N802", "N803", "N806"]
"tutorials/**/tutorial_*.py" = ["D100", "E741", "N802", "N803", "N806", "N816"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.scikit-build]
cmake.source-dir = "multiphenicsx/cpp"
wheel.packages = ["multiphenicsx"]
sdist.exclude = ["*.cpp", "*.h", "CMakeLists.txt"]