-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
98 lines (84 loc) · 2.54 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
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "spei"
dynamic = ["version"]
authors = [{ name = "Martin Vonk", email = "[email protected]" }]
description = "A simple Python package to calculate drought indices for time series such as the SPI, SPEI and SGI."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
dependencies = ["numpy", "scipy", "matplotlib", "pandas"]
classifiers = [
'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',
'Topic :: Scientific/Engineering :: Hydrology',
'Intended Audience :: Science/Research',
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Typing :: Typed",
]
[project.urls]
homepage = "https://github.com/martinvonk/spei"
repository = "https://github.com/martinvonk/spei"
[project.optional-dependencies]
ruffing = ["ruff"]
typing = ["mypy", "pandas-stubs"]
pytesting = ["pytest>=7", "pytest-cov", "pytest-sugar"]
coveraging = ["coverage"]
dev = ["spei[ruffing,typing,pytesting,coveraging]"]
[tool.setuptools.dynamic]
version = { attr = "spei._version.__version__" }
[tool.mypy]
mypy_path = "src"
[[tool.mypy.overrides]]
module = ['matplotlib.*', 'scipy.stats.*']
ignore_missing_imports = true
[tool.pytest.ini_options]
pythonpath = ["src"]
[tool.ruff]
extend-include = ["*.ipynb"]
lint.extend-select = ["I"]
show-fixes = true
fix = true
[tool.tox]
legacy_tox_ini = """
[tox]
requires = tox>=4
env_list = ruff, type, py310, py311, py312, py313
[testenv]
description = run unit tests
extras = pytesting
commands =
pytest tests
[testenv:type]
description = run type checks
basepython = python3.10
extras = typing
commands =
mypy src
[testenv:ruff]
description = run ruff checks
basepython = python3.10
extras = ruffing
commands =
ruff check --extend-select I --preview
ruff format --check
[testenv:ruff_fix]
description = run ruff locally and fix issues
extras = ruffing
commands =
ruff check --extend-select I --fix
ruff format
[testenv:coverage]
description = get coverage report xml
basepython = 3.10
extras = coveraging,pytesting
commands =
coverage run -m pytest tests
coverage xml
"""