-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
164 lines (148 loc) · 3.78 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[build-system]
requires = ["setuptools", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "lmoments3"
description = "A library extend scipy with L-moments to calculate optimal parameters for a number of distributions"
authors = [
{name = "Florenz A.P. Hollebrandse", email = "[email protected]"}
]
maintainers = [
{name = "Trevor James Smith", email = "[email protected]"},
{name = "Pascal Bourgault", email = "[email protected]"}
]
readme = {file = "README.rst", content-type = "text/x-rst"}
requires-python = ">=3.8.0"
keywords = [
"distributions",
"fitting",
"l-moments",
"linear-moments",
"lmoments",
"lmoments3",
"scipy",
"statistics"
]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"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 :: Mathematics"
]
dynamic = ["version"]
dependencies = [
"numpy",
"scipy"
]
[project.optional-dependencies]
dev = [
"black >=24.8.0",
"blackdoc >=0.3.9",
"build >=1.0",
"flake8 >=7.0.0",
"pydocstyle >=6.3.0",
"sphinx >=6.0.0",
"sphinx-rtd-theme >=1.0",
"wheel >=0.42.0"
]
[project.urls]
"Homepage" = "https://lmoments3.readthedocs.io/en"
"Source" = "https://github.com/Ouranosinc/lmoments3/"
"Changelog" = "https://github.com/Ouranosinc/lmoments3/blob/main/CHANGELOG.rst"
"Issue tracker" = "https://github.com/Ouranosinc/lmoments3/issues"
"About Ouranos" = "https://ouranos.ca/en/"
[tool]
[tool.black]
target-version = [
"py38",
"py39",
"py310",
"py311",
"py312",
"py313"
]
[tool.coverage.run]
source = "lmoments3"
relative_files = true
omit = ["*/tests/*.py"]
[tool.flit.sdist]
include = [
"CHANGELOG.rst",
"LICENSE",
"README.rst",
"docs/make.bat",
"docs/Makefile",
"docs/source/**"
]
exclude = [".*", "conda-recipe/**", "docs/build/**"]
[tool.ruff]
src = ["lmoments3"]
line-length = 150
exclude = [
".eggs",
".git",
"build",
"docs"
]
[tool.ruff.lint]
extend-select = [
"RUF022" # unsorted-dunder-all
]
ignore = [
"COM", # commas
"D205", # blank-line-after-summary
"D400", # ends-in-period
"D401", # non-imperative-mood
"N806", # variable-name
# FIXME: the following should be addressed in a future PR
"PERF401" # manual-list-comprehension
]
preview = true
select = [
"B", # bugbear
"BLE", # blind-except
"C90", # mccabe-complexity
"D", # docstrings
"E", # pycodestyle errors
"FLY002", # static-join-to-fstring
"G", # logging-format
"I", # import-order
"N", # naming conventions
"PERF", # iterator performance
"PTH", # pathlib
"RUF010", # explicit-f-string-type-conversion
"RUF013", # implicit-optional
"S", # bandit
"UP", # python version conventions
"W" # pycodestyle warnings
]
[tool.ruff.lint.flake8-bandit]
check-typed-exception = true
[tool.ruff.lint.isort]
known-first-party = ["lmoments3"]
case-sensitive = true
detect-same-package = false
lines-after-imports = 2
no-lines-before = ["future", "standard-library"]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.per-file-ignores]
"docs/**" = ["E402"]
"src/lmoments3/**/__init__.py" = ["F401", "F403"]
"src/lmoments3/tests/**" = ["D100", "D101", "D102", "D103", "S101"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 180
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.setuptools_scm]