This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
159 lines (145 loc) · 3.8 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
[tool.ruff.lint]
ignore = ["E501"]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"C","W","B9"
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = quality, test, pypy, pypy3, py{310,311,312,313}
[gh-actions]
python =
3.10: py310
3.11: py311, quality, test, pypy, pypy3
3.12: py312
3.13: py313
[testenv]
basepython =
pypy: {env:PYTHON:pypy}
pypy3: {env:PYTHON:pypy3}
py310: {env:PYTHON:python3.10}
py311: {env:PYTHON:python3.11}
py312: {env:PYTHON:python3.12}
py313: {env:PYTHON:python3.13}
{quality,reformat,test,coverage}: {env:PYTHON:python3}
setenv =
PYTHONUNBUFFERED = yes
PYTEST_EXTRA_ARGS = --mypy
extras = dev
commands =
pytest {env:PYTEST_EXTRA_ARGS:} src tests {posargs:-vv}
[testenv:coverage]
description = measures code coverage
usedevelop = True
commands =
pytest --cov czml3 {posargs:--cov-report=term-missing}
[testenv:quality]
description = checks code quality
deps =
build
ruff
skip_install = true
commands =
python -m ruff check
python -m build .
[testenv:reformat]
description = reformats the code using ruff
deps =
ruff
skip_install = true
commands =
python -m ruff format
python -m ruff check --fix
"""
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "czml3"
authors = [
{name = "Juan Luis Cano Rodríguez", email = "[email protected]"},
]
description = "Python 3 library to write CZML"
readme = "README.rst"
requires-python = ">=3.10"
keywords = ["czml", "cesium", "orbits"]
license = {text = "MIT"}
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.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",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"pydantic>=2.10.1",
"python-dateutil>=2.7,<3",
"w3lib",
"typing-extensions>=4.12.0",
"StrEnum>=0.4.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"astropy",
"pytest",
"pytest-cov",
"pytest-mypy",
"types-python-dateutil",
"tox",
"build",
"ruff",
]
[project.urls]
Homepage = "https://github.com/poliastro/czml3"
Repository = "https://github.com/poliastro/czml3"
Issues = "https://github.com/poliastro/czml3/issues"
Changelog = "https://github.com/poliastro/czml3/blob/main/CHANGELOG.md"
[tool.setuptools.dynamic]
version = {attr = "czml3.__version__"}
[tool.mypy]
files = [
"src/**/*.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
# More strict checks for library code
[[tool.mypy.overrides]]
module = "czml3"
disallow_untyped_defs = true
# Ignore certain missing imports
[[tool.mypy.overrides]]
module = [
"astropy.*",
"setuptools.*",
"w3lib.*",
]
ignore_missing_imports = true