-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (101 loc) · 3.31 KB
/
pyproject.toml
File metadata and controls
114 lines (101 loc) · 3.31 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
[project]
name = "climate-ref-ilamb"
version = "0.9.1"
description = "ILAMB diagnostic provider for the Rapid Evaluation Framework"
readme = "README.md"
authors = [
{ name = "Nathan Collier", email = "nathaniel.collier@gmail.com" },
{ name = "Jared Lewis", email = "jared.lewis@climate-resource.com" },
]
license = "Apache-2.0"
requires-python = ">=3.11"
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"climate-ref-core>=0.9.0,<1.0.0",
"ilamb3>=2025.9.9",
"scipy<1.16", # https://github.com/statsmodels/statsmodels/issues/9584
"xarray<2025.11", # ilamb3 incompatibility with integrate_space units handling
]
[project.entry-points."climate-ref.providers"]
ilamb = "climate_ref_ilamb:provider"
[project.optional-dependencies]
test = [
"climate-ref[test]",
"pytest>=9.0.0",
"pytest-mock>=3.12",
]
[project.urls]
Homepage = "https://github.com/Climate-REF/climate-ref-ilamb"
Repository = "https://github.com/Climate-REF/climate-ref-ilamb"
Issues = "https://github.com/Climate-REF/climate-ref-ilamb/issues"
[dependency-groups]
dev = [
"climate-ref-ilamb[test]",
"ruff>=0.14.0",
"mypy>=1.19.0",
"pre-commit>=3.3.1",
"types-pyyaml>=6.0.12",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.coverage.run]
source = ["src"]
branch = true
[tool.ruff]
src = ["src"]
line-length = 110
[tool.ruff.lint]
select = ["E", "W", "F", "I", "D", "PL", "NPY", "RUF", "UP", "S", "A"]
ignore = [
"D100", # Missing docstring in public module
"D105", # Missing docstring in magic method
"D200",
"D400",
"UP007",
"S101", # Use of `assert` detected
]
[tool.ruff.lint.per-file-ignores]
"test*.py" = [
"D", # Documentation not needed in tests
"PLR2004", # Magic value used in comparison
"PLR0913", # Too many arguments in function definition
"PLR6301", # Class functions
"PLC2701", # Private named import
]
"conftest.py" = [
"D", # Documentation not needed in tests
"PLR2004", # Magic value used in comparison
]
[tool.ruff.lint.isort]
known-first-party = ["climate_ref_ilamb"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"test_cases: marks tests that run diagnostic test cases with ESGF data",
]
filterwarnings = [
"ignore:cannot collect test class 'TestCase':pytest.PytestCollectionWarning",
"ignore:cannot collect test class 'TestDataSpecification':pytest.PytestCollectionWarning",
"ignore:cannot collect test class 'TestCaseRunner':pytest.PytestCollectionWarning",
"ignore:cannot collect test class 'TestCaseNotFoundError':pytest.PytestCollectionWarning",
"ignore:cannot collect test class 'TestCasePaths':pytest.PytestCollectionWarning",
]
[tool.mypy]
strict = true
show_error_codes = true