-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (76 loc) · 2.09 KB
/
pyproject.toml
File metadata and controls
87 lines (76 loc) · 2.09 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pocketscope"
# Version is dynamically sourced from pocketscope.__version__ (see [tool.setuptools.dynamic])
dynamic = ["version"]
description = "PocketScope — a handheld Pi-powered ATC-style scope for decoding and displaying ADS-B traffic"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [
{ name = "PocketScope Team" }
]
dependencies = [
"pydantic>=2.0",
"numpy>=1.24",
"msgpack>=1.0",
"aiohttp>=3.9",
"PyYAML>=6.0",
# Use pygame-ce on Python 3.13+; fall back to pygame on older versions
"pygame-ce>=2.5.5; python_version >= '3.13'",
"pygame>=2.3.0; python_version < '3.13'",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"black>=23.0",
"ruff>=0.1.0",
"isort>=5.12.0",
"mypy>=1.5",
"pre-commit>=3.0",
"hypothesis>=6.0"
]
pi = [
# Raspberry Pi hardware interfaces (optional; only install on Pi)
"spidev>=3.6",
"RPi.GPIO>=0.7",
"Pillow>=10.0"
]
[project.scripts]
pocketscope = "pocketscope.cli:main"
[tool.black]
line-length = 120
target-version = ["py311"]
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.mypy]
python_version = "3.11"
strict = false
warn_unused_configs = false
warn_return_any = false
disallow_untyped_defs = false
# Per-module/test overrides for external libs and property-based tests
overrides = [
{ module = "hypothesis.*", ignore_missing_imports = true },
{ module = "msgpack", ignore_missing_imports = true },
{ module = "pygame.*", ignore_missing_imports = true },
{ module = "spidev", ignore_missing_imports = true },
{ module = "RPi.*", ignore_missing_imports = true },
{ module = "PIL.*", ignore_missing_imports = true },
{ module = "aiohttp.*", ignore_missing_imports = true },
{ module = "pocketscope.tests.*", disallow_untyped_decorators = false },
]
[tool.pytest.ini_options]
addopts = "-ra -q"
testpaths = [
"src/pocketscope/tests",
"tests",
]
[tool.setuptools.dynamic]
version = { attr = "pocketscope.__version__" }