-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
114 lines (100 loc) · 3.29 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
[project]
name = "CSET"
dynamic = ["version"]
description = "Toolkit for evaluation and investigation of numerical models for weather and climate applications."
authors = [{ name = "Met Office" }, { name = "NIWA" }]
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering",
]
dependencies = [
"numpy",
"scitools-iris >= 3.6",
"ruamel.yaml >= 0.17",
"pygraphviz >= 1.11",
"mo_pack >= 0.3.0",
"isodate",
"markdown-it-py >= 3.0",
"nc-time-axis",
]
[project.urls]
Documentation = "https://metoffice.github.io/CSET"
Source = "https://github.com/MetOffice/CSET"
[project.scripts]
cset = "CSET:main"
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
filterwarnings = [
"ignore:numpy.ndarray size changed:RuntimeWarning",
# Cartopy downloads coastlines, etc. Caching does not catch this for the
# first CI run on each branch.
"ignore::cartopy.io.DownloadWarning",
]
markers = ["network: marks tests that use external network resources"]
minversion = "7"
pythonpath = ["src"]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
relative_files = true
source = ["src"]
[tool.tox]
legacy_tox_ini = '''
[tox]
requires = tox-conda
isolated_build = True
envlist =
coverage-clean
py312-linux-tests
py312-linux-docs
[testenv:py{310,311,312}-{linux,osx,win}-tests]
description = Run unit and integration tests with PyTest.
conda_spec =
py310-linux: {toxinidir}{/}requirements{/}locks{/}py310-lock-linux-64.txt
py311-linux: {toxinidir}{/}requirements{/}locks{/}py311-lock-linux-64.txt
py312-linux: {toxinidir}{/}requirements{/}locks{/}py312-lock-linux-64.txt
usedevelop = true
depends = coverage-clean
commands = pytest {posargs}
[testenv:py{310,311,312}-{linux,osx,win}-docs]
description = Invoke sphinx-build to build the HTML docs.
conda_spec =
py310-linux: {toxinidir}{/}requirements{/}locks{/}py310-lock-linux-64.txt
py311-linux: {toxinidir}{/}requirements{/}locks{/}py311-lock-linux-64.txt
py312-linux: {toxinidir}{/}requirements{/}locks{/}py312-lock-linux-64.txt
usedevelop = true
commands = sphinx-build -d "docs/build/doctree" docs/source "docs/build/html" --color -W -bhtml {posargs}
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
'''
[tool.codespell]
ignore-words-list = "lazyness,meaned"
skip = "build,*.css,*.ipynb,*.js,*.html,*.svg,*.xml,.git"
[tool.ruff]
line-length = 88
src = ["src", "test"]
[tool.ruff.lint]
extend-select = ["B", "D", "I"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"