-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (138 loc) · 3.57 KB
/
pyproject.toml
File metadata and controls
147 lines (138 loc) · 3.57 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[project]
name = "pyextremes"
version = "2.5.0"
description = "Extreme Value Analysis (EVA) in Python"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "George Bocharov", email = "bocharovgeorgii@gmail.com" }]
keywords = [
"statistics",
"extreme",
"extreme value analysis",
"eva",
"coastal",
"ocean",
"oceanography",
"marine",
"environmental",
"engineering",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Hydrology",
"Topic :: Scientific/Engineering :: Mathematics",
"Typing :: Typed",
]
urls = { "homepage" = "https://georgebv.github.io/pyextremes", "github" = "https://github.com/georgebv/pyextremes" }
dependencies = [
"numpy>=1.19.0,<3.0.0",
"scipy>=1.5.0,<2.0.0",
"pandas>=1.0.0,<3.0.0",
"emcee>=3.0.3,<4.0.0",
"matplotlib>=3.3.0,!=3.9.1,<4.0.0", # avoid yanked 3.9.1 release
]
[project.optional-dependencies]
full = ["lmoments3>=1.0.8", "tqdm>=4.0.0,<5.0.0"]
lmoments = ["lmoments3>=1.0.8"]
[dependency-groups]
dev = ["pre-commit>=4.3.0"]
lint = ["mypy>=1.17.1", "ruff>=0.12.9"]
test = ["lmoments3>=1.0.8", "pytest>=8.4.1", "pytest-cov>=6.2.1"]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.17",
"mkdocs-material-extensions>=1.3.1",
"mkdocstrings[python]>=0.30.0",
]
[build-system]
requires = ["uv_build>=0.8.11,<0.9.0"]
build-backend = "uv_build"
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules
select = [
# Pyflakes
"F",
# pycodestyle
"E",
# pep8-naming
"N",
# flake8-bandit
"S",
# flake8-comprehensions
"C4",
# flake8-logging-format
"G",
# flake8-print
"T20",
# flake8-use-pathlib
"PTH",
# Pylint
"PL",
# Ruff-specific rules
"RUF",
]
ignore = [
# Bandit: assert statement
"S101",
# `subprocess` call: check for execution of untrusted input
"S603",
"S607",
# `open()` should be replaced by `Path.open()`
"PTH123",
# Magic value used in comparison
"PLR2004",
# Too many branches
"PLR0912",
# Too many arguments
"PLR0913",
# Too many statements
"PLR0915",
# Mutable class attributes should be annotated with `typing.ClassVar`
"RUF012",
# line too long
"E501",
]
[tool.ruff.lint.isort]
lines-between-types = 1
[tool.pytest.ini_options]
addopts = "-v --cov=pyextremes --cov-report=term --cov-report=xml --cov-report=html"
testpaths = ["tests"]
[tool.coverage.run]
omit = [
"src/pyextremes/plotting/*",
"src/pyextremes/tuning/*",
"src/pyextremes/tests/test_base.py",
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'raise AssertionError',
'raise NotImplementedError',
'if __name__ == .__main__.:',
'def __repr__',
"if (typing.)?TYPE_CHECKING:",
]
fail_under = 90
precision = 1
skip_empty = true
sort = "-Cover"