-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
166 lines (152 loc) · 3.93 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
165
166
[build-system]
requires = ["flit_core >=3.2"]
build-backend = "flit_core.buildapi"
[project]
name="tintx"
description = "Tracking facility to track rainfall and other non-continous data."
authors = [{name = "Martin Bergemann", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"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",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Atmospheric Science",
]
dependencies = [
"cartopy",
"click",
"cftime",
"dask",
"geopandas",
"matplotlib",
"netCDF4",
"numpy<2.0",
"pandas",
"rasterio",
"scipy",
"shapely",
"tables",
"tqdm",
"typing_extensions",
"xarray",
]
[project.optional-dependencies]
dev = ["flit", "tox"]
tests = [
"bash_kernel",
"black",
"flake8",
'ipython<8.13.0;python_version<="3.8"', # # https://github.com/ipython/ipython/issues/14053
'ipython;python_version>"3.8"',
"isort",
"mypy",
"nbval",
"pytest",
"pytest-env",
"pytest-cov",
"pytest-xdist",
"testpath",
]
docs = [
"bash_kernel",
"black",
'ipython<8.13.0;python_version<="3.8"', # # https://github.com/ipython/ipython/issues/14053
'ipython;python_version>"3.8"',
"ipywidgets",
"furo",
"h5netcdf",
"mypy",
"nbsphinx",
"pytest",
"pandoc",
"recommonmark",
"sphinx",
"sphinxcontrib_github_alt",
"sphinx-execute-code-python3",
]
[project.urls]
Source = "https://github.com/antarcticrainforest/tintX"
Issues = "https://github.com/antarcticrainforest/tintX/issues"
Documentation = "https://tintx.readthedocs.io/en/latest"
[profile.scripts]
tintx = "tintx.cli:tintx"
[package-data]
tintx = ["py.typed"]
[tool.isort]
profile = "black"
line_length = 82
[tool.mypy]
python_version = "3.12"
files = "src/tintx"
strict = false
warn_unused_ignores = true
warn_unreachable = true
show_error_codes = true
install_types = true
non_interactive = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
ignore_missing_imports = true
[tool.pytest.ini_options]
env = [
"EVALUATION_SYSTEM_PLUGINS={PWD}/src/evaluation_system/tests/mocks,dummy",
"MPLBACKEND=agg",
"DATA_FILES={PWD}/docs/source/_static/data"
]
filterwarnings = ["ignore::UserWarning"]
[tool.flake8]
max-complexity = 15
max-line-length = 127
show-source = true
statistics = true
ignore = "E203"
select = "E9, F63, F7, F82"
[tool.flake8.per-file-ignores]
"tests/*.py" = "E501, F401"
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
env_list = docs, lint, tests
[testenv]
passenv = *
parallel_show_output = true
[testenv:tests]
package = editable
description = "Run unit tests."
deps =
-e .[tests]
commands =
python3 -m pytest -vv --cov=./src/tintx --cov-report=html:coverage_report --junitxml report.xml --cov-report xml tests
python3 -m coverage report
[testenv:docs]
description = "Create the documentation."
deps = -e .[docs]
allowlist_externals = make
commands = make -C docs clean
make -C docs html
[testenv:lint]
description = "Check code quality."
deps = -e .[tests]
commands =
python -m isort --check --profile black -t py312 -l 79 src/tintx
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics --ignore E203 --count --exit-zero --max-complexity=15 --max-line-length=127
mypy
"""