-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
127 lines (113 loc) · 3.04 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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "yt_idefix"
version = "2.4.0"
description = "An extension module for yt, adding a frontend for Idefix and Pluto"
authors = [
{ name = "C.M.T. Robert" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Matplotlib",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: AIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization",
"Typing :: Typed",
]
keywords = [
"astronomy astrophysics visualization amr adaptivemeshrefinement",
]
requires-python = ">=3.10"
dependencies = [
"inifix>=4.1.0",
"numpy>=1.21.2",
"yt>=4.2.0",
"typing-extensions>=4.4.0 ; python_version < '3.12'"
]
[project.optional-dependencies]
HDF5 = ["h5py>=3.7.0"]
[project.entry-points."yt.frontends"]
IdefixDmpkDataset = "yt_idefix.api:IdefixDmpDataset"
IdefixVtkDataset = "yt_idefix.api:IdefixVtkDataset"
PlutoVtkDataset = "yt_idefix.api:PlutoVtkDataset"
PlutoXdmfDataset = "yt_idefix.api:PlutoXdmfDataset"
[project.license]
text = "GPL-3.0"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://yt-project.org/"
Documentation = "https://yt-project.org/docs/dev/"
Source = "https://github.com/neutrinoceros/yt_idefix"
Tracker = "https://github.com/neutrinoceros/yt_idefix/issues"
[dependency-groups]
test = [
"more-itertools>=8.4.0",
"pyaml>=17.10.0",
"pytest>=7.0.0",
]
typecheck = [
"mypy>=1.13.0",
]
[tool.hatch.build.targets.sdist]
exclude = [".*"] # exclude dot files (.gitignore is still included)
[tool.hatch.build]
exclude = ["tests"]
[tool.ruff.lint]
preview = true # needed for RUF031
explicit-preview-rules = true
exclude = [
"*/api.py",
"*/__init__.py",
]
select = [
"E",
"F",
"W",
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"G", # flake8-logging-format
"YTT", # flake8-2020
"UP", # pyupgrade
"I", # isort
"NPY", # numpy specific rules
"RUF031"# incorrectly-parenthesized-tuple-in-subscript
]
ignore = [
"E501", # line too long
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-third-party = [
"numpy",
"matplotlib",
"unyt",
"yaml",
"pytest",
]
known-first-party = ["yt", "yt_idefix"]
[tool.mypy]
python_version = '3.10'
show_error_codes = true
warn_unused_configs = true
warn_unreachable = true
show_error_context = true
[tool.pytest.ini_options]
addopts = "-ra"
filterwarnings = [
"error",
# already patched (but not released) upstream:
# https://github.com/dateutil/dateutil/pull/1285
'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning',
]