-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
159 lines (141 loc) · 3.62 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "nonos"
version = "0.17.0"
description = "A tool to analyze results from idefix/pluto simulations (for protoplanetary disks more specifically)"
authors = [
{ name = "G. Wafflard-Fernandez" },
{ name = "C.M.T. Robert" },
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Typing :: Typed",
]
requires-python = ">=3.9"
dependencies = [
"inifix>=3.0.0",
"loguru>=0.5.3",
"matplotlib>=3.5.0",
"numpy>=1.19.3",
"packaging>=20.0",
"scipy>=1.6.1",
"termcolor>=2.1.0",
"tqdm>=4.64.1",
"typing_extensions >= 4.4.0 ; python_version < '3.12'",
]
[project.optional-dependencies]
all = [
"cblind>=2.3.0",
"cmocean>=3.0.3",
"cmyt>=2.0.0",
"lick>=0.5.1",
]
[project.license]
text = "GPL-3.0"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.scripts]
nonos = "nonos.main:main"
[project.urls]
Homepage = "https://github.com/volodia99/nonos"
[dependency-groups]
test = [
"cogapp>=3.3.0",
"pytest-mpl>=0.15.1",
"pytest>=7.0.0",
]
covcheck = [
{include-group = "test"},
"coverage[toml]>=7.4.4 ; python_full_version < '3.11'",
"coverage>=7.4.4 ; python_full_version >= '3.11'",
]
typecheck = [
"matplotlib>=3.8.0",
"mypy>=1.13.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-include-markdown-plugin>=7.1.2",
"mkdocs-material>=9.5.47",
"mkdocstrings[python]>=0.27.0",
]
[tool.hatch.build.targets.sdist]
exclude = [
"tests",
".github",
"docs",
"mkdocs.yml",
"_typos.toml",
".readthedocs.yaml",
".pre-commit-config.yaml",
".gitignore",
]
[tool.ruff.lint]
exclude = [
"*__init__.py",
"from_simulation.py", # deprecated module
]
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
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pytest.ini_options]
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
]
[tool.mypy]
# python_version = "3.9" # this can be uncommented (and updated) when Python 3.9 is dropped
show_error_codes = true
warn_unused_configs = true
# warn_unused_ignores = true # this can be uncommented (and updated) when Python 3.9 is dropped
warn_unreachable = true
show_error_context = true
disallow_untyped_defs = false # TODO: add missing annotations and switch this option to true
ignore_missing_imports = true
[tool.coverage.run]
source = [
"nonos",
"tests",
]
omit = [
"nonos/_backports.py",
"nonos/__main__.py",
"nonos/api/from_simulation.py", # deprecated module
]
[tool.coverage.report]
skip_covered = true
exclude_lines = [
# a stricter default pragma
"\\# pragma: no cover\\b",
# allow defensive code
"^\\s*raise NotImplementedError\\b",
"^\\s*assert_never\\b",
# typing-related code
"^if TYPE_CHECKING:",
": \\.\\.\\.(\\s*#.*)?$",
"^ +\\.\\.\\.$",
"-> ['\"]?NoReturn['\"]?:",
]