-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
187 lines (172 loc) · 4.13 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[build-system]
requires = ["setuptools", "setuptools-scm", "numpy>=1.0.0,<3.0.0", "wheel", "build"]
build-backend = "setuptools.build_meta"
[project]
name = "transforms84"
authors = [
{name = "Daniel Stoops", email = "[email protected]"},
]
description = "Geographic system transformations with helper functions"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = ["numpy>=1.0.0,<3.0.0"]
dynamic = ["version"]
[project.optional-dependencies]
tests = [
"ruff>=0.5.7",
"pytest>=8.3.2",
"pytest-cov>=5.0.0",
"mypy>=1.11.1",
"tox>=4.17.1",
"wheel>=0.44.0",
"setuptools>=72.2.0",
"setuptools-scm",
]
dev = [
"ruff>=0.5.7",
"pytest>=8.3.2",
"pytest-cov>=5.0.0",
"mypy>=1.11.1",
"tox>=4.17.1",
"wheel>=0.44.0",
"setuptools>=72.2.0",
"setuptools-scm",
"build>=1.2.1",
]
examples = [
"jupyterlab>=4.2.4",
"shapely>=2.0.5",
"czml3>=1.0.2",
]
[project.urls]
Homepage = "https://github.com/Stoops-ML/transforms84"
Repository = "https://github.com/Stoops-ML/transforms84"
Issues = "https://github.com/Stoops-ML/transforms84/issues"
[tool.setuptools.dynamic]
version = {attr = "transforms84.__version__"}
[tool.ruff]
exclude = [
"old",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
extend-include = ["*.ipynb"]
src = ["src", "tests"]
[tool.ruff.lint]
ignore = ["UP007", "E501"]
select = ["E", "F", "UP", "B", "SIM", "I"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--cov=transforms84",
"--cov-fail-under=100",
# "--cov-report=term-missing",
# "--cov-report=term",
]
[tool.mypy]
files = [
"src/transforms84/**/*.py",
"tests/**/*.py",
]
warn_redundant_casts = true
warn_unused_configs = true
pretty = true
show_error_codes = true
disallow_any_generics = true
disallow_subclassing_any = true
#disallow_untyped_calls = true
#disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
[[tool.mypy.overrides]]
module = "numpy.typing"
plugins = "mypy_plugin"
# Ignore certain missing imports
[[tool.mypy.overrides]]
module = ["pytest.*"]
ignore_missing_imports = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = quality, py{38,39,310,311,312,313}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, quality
3.12: py312
3.13: py313
[testenv]
basepython =
py38: {env:PYTHON:python3.8}
py39: {env:PYTHON:python3.9}
py310: {env:PYTHON:python3.10}
py311: {env:PYTHON:python3.11}
py312: {env:PYTHON:python3.12}
py313: {env:PYTHON:python3.13}
{quality}: {env:PYTHON:python3}
setenv =
PYTHONUNBUFFERED = yes
extras = tests
commands =
pytest
mypy
[testenv:quality]
description = checks code quality
deps =
ruff
numpy
setuptools-scm
setuptools
skip_install = true
commands =
ruff check
ruff format --diff
python setup.py build_ext --inplace -f
"""