opendbc/pyproject.toml

109 lines
2.2 KiB
TOML
Raw Normal View History

[project]
2023-06-14 22:55:49 +08:00
name = "opendbc"
2023-06-18 23:06:42 +08:00
version = "1.0.0"
description = "CAN bus databases and tools"
license = { file = "LICENSE" }
authors = [{ name = "Vehicle Researcher", email = "user@comma.ai" }]
2023-06-14 22:55:49 +08:00
readme = "README.md"
requires-python = ">=3.9"
urls = { "homepage" = "https://github.com/commaai/opendbc" }
2023-06-14 22:55:49 +08:00
Toyota: 2021-23 RAV4 Prime (#1287) * from @pd0wm commaai/opendbc#1005 * from @pd0wm commaai/openpilot#31179 * we did need that flag rename * those flags were numbered like that for a reason * no more bustime * add secOCKey to structs * hack around new pitch value for now * secOCKey placeholder * help the test along for now * codespell disapproves of my creative vision * add crypto dependency * the other one * the other other one * temp use SecOC branch of Panda * i am the panda, for now * propitiate static type checker * on second thought, moving car.capnp is a good idea * remove the SecOC key from CarParams * remove SecOC key reading from Toyota port * add secoc_key to CS/CC * update SecOC key references * default key in interfaces for tests * more CarParams.SecurityConfig * set secOcRequired at startup for SecOC car * see if type checker likes this better * santa please bring car.capnp back soon * list -> flag * diff reduction: won't need the flag rename * add IDLE_COAST signal * regen RAV4 DBC * consolidate and remove ALT_GAS_MSG flag * consolidate and remove GEAR_PACKET_HYBRID flag * cleanup pitch signal * cleanup can_gear * cleanup SECOC_SYNCHRONIZATION * more cleanup * cleanup Mirai * FLAG.value consistency, in case capnp move needs this * not necessary, reduce diff with master * prettier * validation like this should be an offline test * match non-SecOC LTA message * follow secoc library move * repack flag values * whitespace fix * cleanup stockAeb * comment not necessary * add explicit FIXME for pandacan ref * how did that sneak back in * mention why CarDocs are missing * use carlog to note wrong key problems * limit logging volume * prep for new CARS.md infra * pandacan back to panda master
2024-10-05 04:12:17 +08:00
# setuptools includes distutils which is needed by Cython and pre-commit.
# distutils was removed in python3.12 from the standard library.
dependencies = [
"scons",
"numpy",
"Cython",
"crcmod",
2024-08-19 03:08:53 +08:00
"tqdm",
"pycapnp",
"pandacan@git+https://github.com/commaai/panda.git@master",
Toyota: 2021-23 RAV4 Prime (#1287) * from @pd0wm commaai/opendbc#1005 * from @pd0wm commaai/openpilot#31179 * we did need that flag rename * those flags were numbered like that for a reason * no more bustime * add secOCKey to structs * hack around new pitch value for now * secOCKey placeholder * help the test along for now * codespell disapproves of my creative vision * add crypto dependency * the other one * the other other one * temp use SecOC branch of Panda * i am the panda, for now * propitiate static type checker * on second thought, moving car.capnp is a good idea * remove the SecOC key from CarParams * remove SecOC key reading from Toyota port * add secoc_key to CS/CC * update SecOC key references * default key in interfaces for tests * more CarParams.SecurityConfig * set secOcRequired at startup for SecOC car * see if type checker likes this better * santa please bring car.capnp back soon * list -> flag * diff reduction: won't need the flag rename * add IDLE_COAST signal * regen RAV4 DBC * consolidate and remove ALT_GAS_MSG flag * consolidate and remove GEAR_PACKET_HYBRID flag * cleanup pitch signal * cleanup can_gear * cleanup SECOC_SYNCHRONIZATION * more cleanup * cleanup Mirai * FLAG.value consistency, in case capnp move needs this * not necessary, reduce diff with master * prettier * validation like this should be an offline test * match non-SecOC LTA message * follow secoc library move * repack flag values * whitespace fix * cleanup stockAeb * comment not necessary * add explicit FIXME for pandacan ref * how did that sneak back in * mention why CarDocs are missing * use carlog to note wrong key problems * limit logging volume * prep for new CARS.md infra * pandacan back to panda master
2024-10-05 04:12:17 +08:00
"setuptools",
"pycryptodome",
]
[project.optional-dependencies]
testing = [
"ruff",
"pytest",
"pytest-mock",
"pytest-xdist",
"pytest-subtests",
"hypothesis==6.47.*",
"parameterized>=0.8,<0.9",
"pre-commit",
]
docs = [
"Jinja2",
"natsort",
]
examples = [
"inputs",
"matplotlib",
]
[tool.pytest.ini_options]
addopts = "--ignore=panda/ -Werror --strict-config --strict-markers --durations=10 -n auto"
python_files = "test_*.py"
testpaths = [
"opendbc"
]
[tool.codespell]
quiet-level = 3
ignore-words-list = "alo,ba,bu,deque,hda,grey,arange"
builtin = "clear,rare,informal,code,names,en-GB_to_en-US"
check-hidden = true
2023-06-14 22:55:49 +08:00
[tool.cython-lint]
max-line-length = 120
ignore = ["E111", "E114"]
2023-08-08 06:26:46 +08:00
[tool.mypy]
# helpful warnings
warn_redundant_casts=true
warn_unreachable=true
warn_unused_ignores=true
# restrict dynamic typing
warn_return_any=true
# allow implicit optionals for default args
implicit_optional = true
explicit_package_bases=true
2023-08-08 06:26:46 +08:00
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
[tool.ruff]
line-length = 160
indent-width = 2
2023-08-15 03:52:47 +08:00
target-version="py311"
2024-08-02 14:17:16 +08:00
[tool.ruff.lint]
select = [
"E", "F", "W", "PIE", "C4", "ISC", "A", "B",
"NPY", # numpy
"UP", # pyupgrade
"TRY302", "TRY400", "TRY401", # try/excepts
"RUF008", "RUF100",
"TID251",
"PLR1704",
2024-11-11 12:33:38 +08:00
"INP001",
]
ignore = [
"W292",
"E741",
"E402",
"C408",
"ISC003",
"B027",
"B024",
"NPY002", # new numpy random syntax is worse
]
2023-08-15 03:52:47 +08:00
flake8-implicit-str-concat.allow-multiline=false
2024-08-21 06:45:43 +08:00
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"pytest.main".msg = "pytest.main requires special handling that is easy to mess up!"
"unittest".msg = "Use pytest"