-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
192 lines (169 loc) · 4.47 KB
/
pyproject.toml
File metadata and controls
192 lines (169 loc) · 4.47 KB
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
[build-system]
requires = ["flit_core >=3.11,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "nonos"
version = "0.20.0"
description = "A lightweight plotting library for protoplanetary disks simulations"
authors = [
{ name = "G. Wafflard-Fernandez" },
{ name = "C.M.T. Robert" },
]
license = "GPL-3.0-only"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Matplotlib",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Visualization",
"Typing :: Typed",
]
requires-python = ">=3.10"
dependencies = [
"inifix>=5.1.0",
"matplotlib>=3.7.0",
"numpy>=1.21.2",
"packaging>=22.0",
"exceptiongroup>=1.0.0 ; python_full_version < '3.11'",
"typing-extensions>=4.5.0 ; python_version < '3.13'",
]
[project.optional-dependencies]
cli = [
"nonos-cli>=0.1.0",
]
all = [
"nonos[cli]",
"cblind>=2.3.0",
"cmocean>=3.0.3",
"cmyt>=2.0.0",
"lick>=0.6.0",
"scipy>=1.7.2",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/la-niche/nonos"
[dependency-groups]
test = [
"cogapp>=3.3.0",
"pytest-mpl>=0.15.1",
"pytest>=9.0.0",
]
covcheck = [
{include-group = "test"},
"coverage[toml] ; python_full_version < '3.11'",
"coverage>=7.10.0",
"numexpr>=2.10.2",
]
typecheck = [
"nonos[all]",
"mypy>=1.13.0",
"scipy-stubs>=1.15.3.0",
"exceptiongroup", # this can be removed once Python 3.10 is dropped
]
docs = [
"nonos[cli]",
"mkdocs>=1.6.1",
"mkdocs-include-markdown-plugin>=7.1.2",
"mkdocs-material>=9.5.47",
"mkdocstrings[python]>=0.27.0",
]
[tool.ruff.lint]
ignore = [
"E501",
"PTH123", # `open()` should be replaced by `Path.open()`
]
select = [
"E",
"F",
"W",
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"PTH", # flake8-use-pathlib
"B", # flake8-bugbear
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
"RUF022", # unsorted-dunder-all
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["nonos", "nonos_cli"]
[tool.pytest]
minversion = "9.0"
strict = true
addopts = ["-ra"]
filterwarnings = [
"error",
'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning', # https://github.com/dateutil/dateutil/pull/1285
'ignore:The py23 module has been deprecated and will be removed in a future release:DeprecationWarning',
"ignore:Passing 'N' to ListedColormap is deprecated since:DeprecationWarning", # https://github.com/matplotlib/cmocean/pull/114
"ignore:'mode' parameter is deprecated:DeprecationWarning", # https://github.com/matplotlib/matplotlib/pull/30221
]
[tool.ty.rules]
unused-type-ignore-comment = "ignore"
[[tool.ty.overrides]]
include = ["*/**/__init__.py"]
[tool.ty.overrides.rules]
deprecated = "ignore"
[tool.mypy]
python_version = "3.10"
strict = true
# permanent overrides to strict mode
# last checked, this only flagged Enum.__call__ used on final classes,,
disallow_untyped_calls = false
# customized outputs
show_error_codes = true
show_error_context = true
[tool.coverage.run]
source = [
"src",
"tests",
"cli/src",
"cli/tests",
]
omit = [
"src/nonos/_backports.py",
"cli/src/nonos_cli/__main__.py",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
# use exclude_also to *extend* the default exclude_lines,
# and allow purely defensive code patterns
exclude_also = [
"^\\s*raise (Assertion|NotImplemented)Error\\b",
"^\\s*case _ as _?unreachable:",
]
[tool.uv]
no-build-package = [
"numpy",
"matplotlib",
"pillow",
"contourpy",
"kiwisolver",
# all of the following are from pytest-mpl (directly or not)
# these constraints should (mostly) become obsolete with https://github.com/matplotlib/pytest-mpl/pull/252
"markupsafe",
]
constraint-dependencies = [
# https://github.com/matplotlib/pytest-mpl/pull/252
"jinja2>=2.10.2",
# via matplotlib 3.7
"pyparsing>=2.4.0",
"fonttools>=4.24.2",
]
[tool.uv.workspace]
members = [
"cli",
]
[tool.uv.sources]
nonos-cli = { workspace = true }