-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (89 loc) · 2.04 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
[tool.coverage.run]
branch = true
omit = ["config.py", "config-3.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if typing.TYPE_CHECKING:",
]
[tool.mypy]
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = "photonlibpy.*"
# https://github.com/PhotonVision/photonvision/issues/1210
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--strict-markers -v --maxfail=2"
pythonpath = "."
testpaths = ["tests"]
xfail_strict = true
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pyflakes
"F",
# flake8-bugbear
"B",
# isort
"I",
# pyupgrade
"UP",
# flake8-comprehensions
"C4",
# flake8-logging-format
"G",
# flake8-simplify
"SIM",
# flake8-print
"T20",
# perflint
"PERF",
]
ignore = ["E501"]
[tool.uv]
dev-dependencies = [
"hypothesis>=6.112.1",
"mypy>=1.8.0",
"pytest>=7.2.0",
"pytest-integration>=0.2.3",
]
prerelease = "allow"
[project]
name = "pyreefscape"
version = "0.0.0"
description = "The Drop Bears' FRC 2025 robot code"
authors = [{ name = "The Drop Bears", email = "[email protected]" }]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10,<3.13"
dependencies = [
"numpy~=2.1",
"phoenix6~=25.0.0b2",
# robotpy[apriltag] pins numpy to a version that doesn't build cleanly on Python 3.12.
"robotpy==2025.0.0b2",
"robotpy-apriltag~=2025.0.0b2",
"robotpy-navx~=2025.0.0b3",
"robotpy-rev~=2025.0.0b1.post1",
"robotpy-wpilib-utilities==2025.0.0b2",
"photonlibpy==2025.0.0b4",
]
[tool.robotpy]
requires = [
"numpy~=2.1",
"phoenix6~=25.0.0b2",
"robotpy-navx~=2025.0.0b3",
"robotpy-rev~=2025.0.0b1.post1",
"robotpy-wpilib-utilities==2025.0.0b2",
"photonlibpy==2025.0.0b4",
]
robotpy_version = "2025.0.0b2"
robotpy_extras = ["apriltag"]