2023-08-10 23:23:19 +08:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
minversion = "6.0"
|
2023-08-29 01:26:19 +08:00
|
|
|
addopts = "--ignore=opendbc/ --ignore=panda/ --ignore=rednose_repo/ --ignore=tinygrad_repo/ --ignore=laika_repo/ -Werror --strict-config --strict-markers"
|
2023-08-10 23:23:19 +08:00
|
|
|
python_files = "test_*.py"
|
2023-08-29 01:26:19 +08:00
|
|
|
#timeout = "30" # you get this long by default
|
2023-08-10 23:23:19 +08:00
|
|
|
|
2023-08-21 12:08:04 +08:00
|
|
|
[tool.mypy]
|
|
|
|
python_version = "3.11"
|
|
|
|
plugins = [
|
|
|
|
"numpy.typing.mypy_plugin",
|
|
|
|
]
|
|
|
|
exclude = [
|
|
|
|
"body/",
|
|
|
|
"cereal/",
|
|
|
|
"opendbc/",
|
|
|
|
"panda/",
|
|
|
|
"laika/",
|
|
|
|
"laika_repo/",
|
|
|
|
"rednose/",
|
|
|
|
"rednose_repo/",
|
|
|
|
"tinygrad/",
|
|
|
|
"tinygrad_repo/",
|
|
|
|
"third_party/",
|
|
|
|
]
|
|
|
|
|
|
|
|
# third-party packages
|
|
|
|
ignore_missing_imports=true
|
|
|
|
|
|
|
|
# helpful warnings
|
|
|
|
warn_redundant_casts=true
|
|
|
|
warn_unreachable=true
|
|
|
|
warn_unused_ignores=true
|
|
|
|
|
|
|
|
# restrict dynamic typing
|
|
|
|
warn_return_any=true
|
|
|
|
|
|
|
|
|
2022-10-22 07:23:56 +08:00
|
|
|
[tool.poetry]
|
|
|
|
name = "openpilot"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = "an open source driver assistance system"
|
|
|
|
authors = ["Vehicle Researcher <user@comma.ai>"]
|
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://github.com/commaai/openpilot"
|
|
|
|
documentation = "https://docs.comma.ai"
|
|
|
|
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-07-21 12:56:57 +08:00
|
|
|
python = "~3.11"
|
2023-07-25 10:01:09 +08:00
|
|
|
atomicwrites = "*"
|
2023-07-27 14:08:23 +08:00
|
|
|
aiohttp = "*"
|
|
|
|
aiortc = "*"
|
2023-06-22 04:14:20 +08:00
|
|
|
casadi = "==3.6.3"
|
2023-07-25 10:01:09 +08:00
|
|
|
cffi = "*"
|
2023-08-23 07:48:02 +08:00
|
|
|
control = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
crcmod = "*"
|
|
|
|
cryptography = "*"
|
|
|
|
Cython = "*"
|
|
|
|
future-fstrings = "*" # for acados
|
2022-10-22 07:23:56 +08:00
|
|
|
hatanaka = "==2.4"
|
2023-07-25 10:01:09 +08:00
|
|
|
hexdump = "*"
|
|
|
|
Jinja2 = "*"
|
|
|
|
json-rpc = "*"
|
|
|
|
libusb1 = "*"
|
2023-08-18 06:36:14 +08:00
|
|
|
numpy = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
onnx = ">=1.14.0"
|
|
|
|
onnxruntime-gpu = { version = ">=1.15.1", platform = "linux", markers = "platform_machine == 'x86_64'" }
|
|
|
|
pillow = "*"
|
|
|
|
psutil = "*"
|
2023-07-27 14:08:23 +08:00
|
|
|
pyaudio = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
pycapnp = "*"
|
|
|
|
pycryptodome = "*"
|
2023-07-27 14:08:23 +08:00
|
|
|
pydub = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
PyJWT = "*"
|
|
|
|
pyopencl = "*"
|
|
|
|
pyserial = "*"
|
|
|
|
PyYAML = "*"
|
|
|
|
pyzmq = "*"
|
|
|
|
requests = "*"
|
|
|
|
scons = "*"
|
2023-08-12 11:05:44 +08:00
|
|
|
sentry-sdk = "==1.28.1" # needs to be updated with AGNOS
|
2023-07-25 10:01:09 +08:00
|
|
|
setproctitle = "*"
|
|
|
|
smbus2 = "*"
|
|
|
|
sounddevice = "*"
|
|
|
|
spidev = { version = "*", platform = "linux" }
|
|
|
|
spidev2 = { version = "*", platform = "linux" }
|
|
|
|
sympy = "*"
|
|
|
|
timezonefinder = "*"
|
|
|
|
tqdm = "*"
|
|
|
|
urllib3 = "*"
|
|
|
|
websocket_client = "*"
|
|
|
|
polyline = "*"
|
2023-04-07 12:12:32 +08:00
|
|
|
sconscontrib = {git = "https://github.com/SCons/scons-contrib.git"}
|
2022-10-22 07:23:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
2023-07-25 10:01:09 +08:00
|
|
|
av = "*"
|
2023-08-26 05:01:10 +08:00
|
|
|
azure-identity = "*"
|
|
|
|
azure-storage-blob = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
breathe = "*"
|
2023-07-21 12:56:57 +08:00
|
|
|
carla = { url = "https://github.com/commaai/carla/releases/download/3.11.4/carla-0.9.14-cp311-cp311-linux_x86_64.whl", platform = "linux", markers = "platform_machine == 'x86_64'" }
|
2023-07-25 10:01:09 +08:00
|
|
|
coverage = "*"
|
|
|
|
dictdiffer = "*"
|
|
|
|
ft4222 = "*"
|
2022-10-22 07:23:56 +08:00
|
|
|
hypothesis = "==6.46.7"
|
2023-07-25 10:01:09 +08:00
|
|
|
inputs = "*"
|
|
|
|
lru-dict = "*"
|
|
|
|
markdown-it-py = "*"
|
|
|
|
matplotlib = "*"
|
|
|
|
mpld3 = "*"
|
|
|
|
mypy = "*"
|
|
|
|
myst-parser = "*"
|
|
|
|
natsort = "*"
|
2023-08-12 11:05:44 +08:00
|
|
|
opencv-python-headless = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
pandas = "*"
|
|
|
|
parameterized = "^0.8"
|
|
|
|
pprofile = "*"
|
|
|
|
pre-commit = "*"
|
|
|
|
pycurl = "*"
|
|
|
|
pygame = "*"
|
|
|
|
pyprof2calltree = "*"
|
|
|
|
pytest = "*"
|
2023-08-22 11:51:27 +08:00
|
|
|
pytest-cov = "*"
|
2023-08-23 05:31:03 +08:00
|
|
|
pytest-subtests = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
pytest-xdist = "*"
|
2023-08-29 01:26:19 +08:00
|
|
|
pytest-timeout = "*"
|
|
|
|
pytest-timeouts = "*"
|
2023-08-12 11:05:44 +08:00
|
|
|
scipy = "*"
|
2023-07-25 10:01:09 +08:00
|
|
|
sphinx = "*"
|
|
|
|
sphinx-rtd-theme = "*"
|
|
|
|
sphinx-sitemap = "*"
|
|
|
|
tabulate = "*"
|
|
|
|
tenacity = "*"
|
|
|
|
types-atomicwrites = "*"
|
|
|
|
types-certifi = "*"
|
|
|
|
types-pycurl = "*"
|
|
|
|
types-PyYAML = "*"
|
|
|
|
types-requests = "*"
|
|
|
|
types-tabulate = "*"
|
2023-08-17 05:11:45 +08:00
|
|
|
pyqt5 = { version = "*", markers = "platform_machine == 'x86_64'" } # no aarch64 wheels for macOS/linux
|
2022-10-22 07:23:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
2023-08-10 04:26:54 +08:00
|
|
|
|
|
|
|
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
|
|
|
|
[tool.ruff]
|
2023-08-12 06:33:49 +08:00
|
|
|
select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF100", "A", "B"]
|
2023-08-12 07:13:51 +08:00
|
|
|
ignore = ["W292", "E741", "E402", "C408", "ISC003", "B027", "B024"]
|
2023-08-10 04:26:54 +08:00
|
|
|
line-length = 160
|
2023-08-10 07:45:09 +08:00
|
|
|
target-version="py311"
|
|
|
|
exclude = [
|
|
|
|
"panda",
|
|
|
|
"opendbc",
|
|
|
|
"laika_repo",
|
|
|
|
"rednose_repo",
|
|
|
|
"tinygrad_repo",
|
|
|
|
"third_party",
|
|
|
|
]
|
2023-08-11 07:43:39 +08:00
|
|
|
flake8-implicit-str-concat.allow-multiline=false
|