Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (69 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (69 loc) · 2.04 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "obsarray"
dynamic = ["version"]
description = "Extension to xarray for handling uncertainty-quantified observation data"
readme = "README.md"
license-files = ["LICENSE"]
authors = [{name = "CoMet Toolkit Team", email = "team@comet-toolkit.org"}]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"numpy",
"xarray",
"netcdf4",
"comet_maths",
]
[project.optional-dependencies]
dev = [
# Pinned: both gate CI. Bump deliberately, not incidentally.
"ruff==0.15.13",
"mypy==2.1.0",
"pre-commit",
"pytest",
"pytest-html",
"pytest-cov",
]
docs = [
"sphinx",
"sphinx_book_theme",
"sphinx_design",
"sphinx_autosummary_accessors",
"ipython",
]
[project.urls]
Homepage = "https://github.com/comet-toolkit/obsarray"
Documentation = "https://obsarray.readthedocs.io"
[tool.setuptools.packages.find]
include = ["obsarray*"]
[tool.setuptools_scm]
# version inferred from git tags (e.g. v1.0.3); no extra config needed
[tool.mypy]
allow_untyped_globals = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["obsarray.test.*", "obsarray.*.tests.*"]
ignore_errors = true
[tool.pytest.ini_options]
testpaths = ["obsarray"]
[tool.ruff]
# 88 (black's default) rather than the MetEOR template's 120, so switching from
# black to ruff format doesn't reflow the existing codebase.
line-length = 88
exclude = ["docs"]
[tool.ruff.lint]
# ruff's historical defaults, stated explicitly so a version bump cannot widen
# the gate without someone choosing to.
select = ["E4", "E7", "E9", "F"]
extend-ignore = ["W291"]
[tool.ruff.lint.per-file-ignores]
"obsarray/__init__.py" = ["E402", "F401"]