-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
152 lines (139 loc) · 3.68 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
145
146
147
148
149
150
151
152
[build-system]
requires = [
"nanobind >= 2.1.0",
"petsc4py",
"scikit-build-core[pyproject]"
]
build-backend = "scikit_build_core.build"
[project]
name = "RBniCSx"
version = "0.0.dev1"
authors = [
{name = "Francesco Ballarin", email = "[email protected]"},
]
maintainers = [
{name = "Francesco Ballarin", email = "[email protected]"},
]
description = "Reduced order modelling in FEniCSx"
license = {file = "COPYING"}
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"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 = [
"mpi4py",
"numpy >= 1.21.0",
"petsc4py",
"plum-dispatch",
"slepc4py",
"typing-extensions; python_version < '3.11'"
]
[project.urls]
homepage = "https://www.rbnicsproject.org"
repository = "https://github.com/RBniCS/RBniCSx"
issues = "https://github.com/RBniCS/RBniCSx/issues"
funding = "https://github.com/sponsors/francesco-ballarin"
[project.optional-dependencies]
backends = [
"adios4dolfinx @ git+https://github.com/jorgensd/adios4dolfinx.git",
"fenics-dolfinx >=0.10.0.dev0, <0.11.0",
"multiphenicsx @ git+https://github.com/multiphenics/multiphenicsx.git",
"ufl4rom @ git+https://github.com/RBniCS/ufl4rom.git"
]
docs = [
"sphinx"
]
lint = [
"clang-format",
"cmakelang",
"isort",
"mypy",
"nbqa",
"ruff",
"yamllint"
]
tests = [
"coverage[toml]",
"nbvalx[unit-tests]",
"pytest",
"scipy"
]
tutorials = [
"gmsh",
"nbvalx[notebooks]",
"plotly",
"rbnicsx[backends]",
"viskex @ git+https://github.com/viskex/viskex.git"
]
[tool.isort]
line_length = 120
multi_line_output = 4
order_by_type = false
combine_as_imports = true
known_first_party = ["rbnicsx"]
[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",
# "dolfinx.*",
"gmsh",
"ipyparallel",
"petsc4py",
"petsc4py.PETSc",
"plotly",
"plotly.*",
"plum",
"scipy",
"scipy.*",
"slepc4py",
"slepc4py.SLEPc",
"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]
"rbnicsx/**/__init__.py" = ["F401"]
"rbnicsx/**/*.py" = ["N802", "N803", "N806"]
"tests/unit/**/*.py" = ["N802", "N803", "N806"]
"tutorials/0*.py" = ["D100", "F401", "N803", "N806"]
"tutorials/1*.py" = ["D100", "F401", "N803", "N806"]
"tutorials/**/0*.py" = ["D100", "F401", "N803", "N806"]
"tutorials/**/1*.py" = ["D100", "F401", "N803", "N806"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.scikit-build]
cmake.source-dir = "rbnicsx/_cpp"
wheel.packages = ["rbnicsx"]
sdist.exclude = ["*.cpp", "*.h", "CMakeLists.txt"]