-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (112 loc) · 3.29 KB
/
pyproject.toml
File metadata and controls
125 lines (112 loc) · 3.29 KB
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
[project]
name = "pyModeS"
version = "3.3.0"
description = "Python Mode-S and ADS-B Decoder"
authors = [{ name = "Junzi Sun", email = "git@junzis.com" }]
license = { text = "GNU GPL v3" }
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
requires-python = ">=3.11"
# v3 has no runtime dependencies. The decoder is pure Python on
# top of stdlib (int shifts + math + socket + json + argparse).
# The optional `tui` extra pulls in `textual` for `modes live --tui`.
dependencies = []
[project.scripts]
modes = "pyModeS.cli:main"
# `modeslive` was v2's beast streamer console script. It's not
# used in v3 — kept registered here so `modeslive` at the shell
# prints a migration hint pointing at `modes live` / `modes
# decode` instead of shell "command not found".
modeslive = "pyModeS._v2_removed:modeslive_main"
[project.optional-dependencies]
tui = ["textual>=0.50"]
[project.urls]
homepage = "https://mode-s.org"
repository = "https://github.com/junzis/pyModeS"
issues = "https://github.com/junzis/pyModeS/issues"
[dependency-groups]
dev = [
"mypy>=1.13",
"pre-commit>=4.5.1",
"pytest>=7.2.0",
"pytest-cov>=4.0.0",
"ruff>=0.15.8",
# textual is declared as an optional runtime extra
# (`pyModeS[tui]`), but it's also a dev requirement so mypy can
# statically check src/pyModeS/cli/_tui.py on a fresh clone.
"textual>=0.50",
]
[tool.ruff]
target-version = "py311"
line-length = 88
extend-exclude = ["scripts/bench_pms_v2.py"]
[tool.ruff.lint]
select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"SIM", # flake8-simplify
"NPY", # numpy
"NPY201", # numpy 2 compat
"DTZ", # flake8-datetimez
"RUF", # ruff-specific
]
[tool.mypy]
python_version = "3.11"
strict = true
mypy_path = "src"
packages = ["pyModeS"]
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
addopts = [
"--strict-markers",
"--strict-config",
]
[tool.coverage.run]
source = ["src/pyModeS"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/pyModeS"]
# Explicit src layout for editable installs. Without this,
# hatchling + editables PEP 660 ends up writing an empty
# _pymodes.pth when the distribution name is PEP-503-normalized
# (pyModeS → pymodes). Pointing dev-mode-dirs at src/ restores
# the simple `sys.path += src/` behavior.
dev-mode-dirs = ["src"]
[tool.hatch.build.targets.sdist]
include = [
"src/pyModeS",
"README.md",
"CHANGELOG.md",
"LICENSE",
"pyproject.toml",
]