forked from xarray-contrib/pint-xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (111 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
124 lines (111 loc) · 2.68 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
[build-system]
requires = ["setuptools >= 64", "setuptools_scm >= 7.0"]
build-backend = "setuptools.build_meta"
[project]
name = "astropy-xarray"
authors = [
{ name = "Callan Gray", email = "calj.gray@gmail.com" },
{ name = "Tom Nicholas", email = "tomnicholas1@googlemail.com" },
]
description = "Physical units interface to xarray using astropy"
license = "Apache-2.0"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.23,<2.3.0",
"xarray>=2022.06.0,<=2025.4.0",
"astropy>=6.1.0",
"pandas>=2.3.0,<3.0.0",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/calgray/astropy-xarray"
documentation = "https://astropy-xarray.readthedocs.io/en/stable"
repository = "https://github.com/calgray/astropy-xarray"
issues = "https://github.com/calgray/astropy-xarray/issues"
[project.optional-dependencies]
test = [
"pytest>=8.0",
"pytest-cov",
"dask[array]",
"msgpack>=1.1.2",
"msgpack-numpy>=0.4.8",
"cf-xarray>=0.10.6",
"bottleneck",
]
docs = [
"sphinx==8.2.3",
"myst-nb==1.4.0",
"nbsphinx",
"furo",
"sphinx-autosummary-accessors",
]
[tool.setuptools.packages.find]
include = [
"astropy_xarray",
"astropy_xarray.tests",
]
[tool.setuptools_scm]
fallback_version = "999"
[tool.pytest.ini_options]
junit_family = "xunit2"
[tool.isort]
profile = "black"
skip_gitignore = "true"
force_to_top = "true"
[tool.ruff]
target-version = "py310"
builtins = ["ellipsis"]
exclude = [
".git",
".eggs",
"build",
"dist",
"__pycache__",
]
line-length = 100
[tool.ruff.lint]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
# E731: do not assign a lambda expression, use a def
ignore = [
"E402",
"E501",
"E731",
"UP038",
]
select = [
"F", # Pyflakes
"E", # Pycodestyle
"I", # isort
"UP", # Pyupgrade
"TID", # flake8-tidy-imports
"W",
]
extend-safe-fixes = [
"TID252", # absolute imports
]
fixable = ["I", "TID252"]
[tool.ruff.lint.isort]
known-first-party = ["astropy_xarray"]
known-third-party = ["xarray"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all" # Disallow all relative imports.
[tool.coverage.run]
source = ["astropy_xarray"]
branch = true
[tool.coverage.report]
show_missing = true
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]