-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
executable file
·163 lines (148 loc) · 3.55 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
153
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = [
"setuptools>=61",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "cashocs"
version = "2.4.0-dev"
description = "Computational Adjoint-Based Shape Optimization and Optimal Control Software"
readme = "README.rst"
requires-python = ">=3.9"
license = {text = "GNU General Public License v3 or later (GPLv3+)"}
authors = [
{name = "Sebastian Blauth"},
{email = "[email protected]"}
]
keywords = [
"Shape Optimization",
"Optimal Control",
"FEniCS",
"Optimization",
"PDE",
"Adjoint",
"Finite Element Method"
]
classifiers = [
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent"
]
dependencies = [
"meshio >= 4.1.0",
"numpy",
"scipy >= 1.10.0",
"typing_extensions",
"matplotlib",
]
[project.urls]
Documentation = "https://cashocs.readthedocs.io/en/stable"
Source = "https://github.com/sblauth/cashocs"
Tutorial = "https://cashocs.readthedocs.io/en/stable/user"
Tracker = "https://github.com/sblauth/cashocs/issues"
[project.scripts]
cashocs-convert = "cashocs._cli:convert"
cashocs-extract_mesh = "cashocs._cli:extract_mesh"
[project.optional-dependencies]
tests = [
"pytest",
"pytest-randomly",
"pytest-cov",
"pytest-xdist",
"pytest-timeout",
"pytest-icdiff"
]
docs = [
"sphinx",
"pydata-sphinx-theme",
"sphinx-argparse",
"sphinx-copybutton",
"sphinx-design",
"jupytext",
"myst-parser"
]
all = ["cashocs[tests,docs]"]
[tool.setuptools.packages]
find = {}
[tool.black]
line_length = 88
[tool.isort]
profile = "black"
skip_gitignore = "True"
line_length = 88
force_single_line = "True"
single_line_exclusions = ["typing"]
lexicographical = "True"
force_sort_within_sections = "True"
order_by_type = "False"
group_by_package = "True"
known_first_party = ["cashocs"]
known_third_party = ["fenics", "ufl", "numpy"]
[tool.pydocstyle]
convention = "google"
match_dir = "cashocs/"
[tool.coverage.run]
source = ["cashocs"]
relative_files = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise _exceptions.InputError",
"raise _exceptions.CashocsException",
"raise _exceptions.CashocsDebugException",
"log.warning",
"abstractmethod",
]
[tool.mypy]
plugins = "numpy.typing.mypy_plugin"
warn_return_any = true
follow_imports = "normal"
check_untyped_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
disallow_any_unimported = false
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"fenics.*",
"ufl.*",
"ufl_legacy.*",
"dolfin.*",
"petsc4py",
"mpi4py.*",
"meshio",
"h5py",
"matplotlib.*",
"scipy.*",
"cashocs_extensions.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle error
"W", # pycodestyle warning
"D", # pydocstyle
"C90", # mccabe
"UP", # pyupgrade
"B", # flake8bugbear
"NPY" # numpy
]
[tool.ruff.lint.pydocstyle]
convention = "google"