mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-10-01 03:53:41 +08:00
cfc2cda37c
* car logger * try this * fix double printing! * clean up * need to import where we actually use it (card won't be in submodule) * NullHandler does not forward everything properly, need propagate=False to stop root logger from printing * card is staying * set up * forward old-commit-hash: 12a7b7f7fb1d3a275314b0232795942a7ff3b955
40 lines
1.7 KiB
Plaintext
40 lines
1.7 KiB
Plaintext
[importlinter]
|
|
root_packages =
|
|
openpilot
|
|
|
|
[importlinter:contract:1]
|
|
name = Forbid imports from openpilot.selfdrive.car to openpilot.system
|
|
type = forbidden
|
|
source_modules =
|
|
openpilot.selfdrive.car
|
|
forbidden_modules =
|
|
openpilot.system
|
|
openpilot.body
|
|
openpilot.docs
|
|
openpilot.msgq
|
|
openpilot.panda
|
|
openpilot.rednose
|
|
openpilot.release
|
|
openpilot.teleoprtc
|
|
openpilot.tinygrad
|
|
ignore_imports =
|
|
# remove these
|
|
openpilot.selfdrive.car.card -> openpilot.common.realtime
|
|
openpilot.selfdrive.car.card -> openpilot.selfdrive.controls.lib.events
|
|
openpilot.selfdrive.car.interfaces -> openpilot.selfdrive.controls.lib.events
|
|
openpilot.selfdrive.car.tests.test_models -> openpilot.tools.lib.logreader
|
|
openpilot.selfdrive.car.tests.test_models -> openpilot.selfdrive.car.card
|
|
openpilot.selfdrive.car.tests.test_models -> openpilot.tools.lib.route
|
|
openpilot.selfdrive.car.tests.test_models -> openpilot.system.hardware.hw
|
|
openpilot.selfdrive.car.tests.test_models -> openpilot.selfdrive.test.helpers
|
|
openpilot.selfdrive.car.car_helpers -> openpilot.system.version
|
|
openpilot.selfdrive.car.interfaces -> openpilot.selfdrive.controls.lib.drive_helpers
|
|
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.latcontrol_angle
|
|
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.longcontrol
|
|
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.latcontrol_torque
|
|
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.latcontrol_pid
|
|
|
|
# these are okay
|
|
openpilot.selfdrive.car.card -> openpilot.common.swaglog
|
|
unmatched_ignore_imports_alerting = warn
|