-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
146 lines (131 loc) · 2.71 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
[build-system]
requires = [
"xarray",
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2"
]
build-backend = "setuptools.build_meta"
[project]
name = "index_calculator"
description = "Python index-calculator is an xclim wrapper"
readme = "README.rst"
requires-python = ">=3.9"
license = {file = "LICENSE"}
keywords = ["index_calculator"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
dependencies = [
"xarray",
"dask",
"xclim",
"pyhomogenize>=0.5.1",
"pint>=0.1",
"pooch"
]
dynamic = ["version"]
[project.scripts]
index_calculator = "index_calculator.cli:main"
[project.urls]
homepage = "https://index-calculator.readthedocs.io"
documentation = "https://index-calculator.readthedocs.io"
repository = "https://github.com/ludwiglierhammer/index_calculator.git"
changelog = "https://index-calculator.readthedocs.io/en/latest/history.html"
[tool.black]
target-version = ["py38"]
[tool.coverage.run]
relative_files = true
omit = ["tests/*.py"]
[tool.isort]
profile = "black"
py_version = 38
append_only = true
[tool.mypy]
exclude = "doc|flycheck"
files = "index_calculator/"
show_error_codes = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"cftime",
"pandas",
"pooch",
"pint",
"matplotlib",
"pytest",
"shapely.geometry",
"xarray.core.pycompat"
]
ignore_missing_imports = true
[tool.nbqa.md]
mdformat = true
[tool.pytest]
python_files = "test_*.py"
testpaths = ["./tests"]
[tool.rstcheck]
report_level = "WARNING"
ignore_roles = [
"pull",
"issue"
]
ignore_directives = [
"ipython",
"autodata",
"autosummary"
]
[tool.ruff]
target-version = "py38"
builtins = ["ellipsis"]
exclude = [
".eggs",
"doc"
]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
# E731: do not assign a lambda expression, use a def
ignore = [
"E203",
"E402",
"E501",
"E731"
]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I",
# Pyupgrade
"UP"
]
[tool.ruff.isort]
known-first-party = ["index_calculator"]
known-third-party = [
"dask",
"matplotlib",
"numpy",
"pandas",
"pint",
"pkg_resources",
"pytest",
"setuptools",
"sphinx_autosummary_accessors",
"xarray"
]
[tool.setuptools]
packages = ["index_calculator"]
[tool.setuptools_scm]
fallback_version = "999"
write_to = "index_calculator/_version.py"
write_to_template = '__version__ = "{version}"'
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"