-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
88 lines (80 loc) · 2.19 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
[project]
name = "pitot"
version = "0.3.2"
description = "Toolbox for aeronautic units and conversions"
authors = [
{ name = "Xavier Olive", email = "[email protected]" },
{ name = "Junzi Sun", email = "[email protected]" },
]
license = "MIT"
readme = "readme.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Typing :: Typed",
]
requires-python = ">=3.9"
dependencies = [
"impunity>=1.0.5",
"numpy>=2.0.2; python_version<'3.10'",
"numpy>=2.1.3; python_version>='3.10'",
"pandas>=2.2.3",
"typing-extensions>=4.12.2",
"pyproj<3.7.1; python_version<'3.10'",
"pyproj>=3.7.0; python_version>='3.10'",
]
[tool.uv]
dev-dependencies = [
"mypy>=1.13.0",
"pre-commit>=4.0.1",
"pytest>=8.3.3",
"pytest-cov>=6.0.0",
"ruff>=0.7.2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
lint.select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"NPY", # numpy
# "PD", # pandas
"DTZ", # flake8-datetimez
"RUF",
]
line-length = 80
target-version = "py39"
[tool.ruff.lint.isort]
known-first-party = ["numpy", "pandas", "pyproj", "shapely"]
[tool.mypy]
python_version = 3.9
platform = "posix"
color_output = true
pretty = true
show_column_numbers = true
strict = true
# probably redundant, but useful when switching strict to false
check_untyped_defs = true
ignore_missing_imports = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = "--log-level=INFO --color=yes --doctest-modules --doctest-report ndiff"
filterwarnings = ["ignore:.*unit of the quantity is strip.*:"]
testpaths = ["tests", "src"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS", "NUMBER"]