mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
remove import linter (#33319)
* rm import linter, we're done! * revert * uv lock * Revert "uv lock" This reverts commit 5e46f48e8a5738ea5121da6f2d1c7210dcefe053.
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
[importlinter]
|
||||
root_packages =
|
||||
openpilot
|
||||
cereal
|
||||
capnp
|
||||
|
||||
[importlinter:contract:1]
|
||||
name = Forbid imports from openpilot.selfdrive.car to openpilot.system
|
||||
type = forbidden
|
||||
source_modules =
|
||||
openpilot.selfdrive.car
|
||||
forbidden_modules =
|
||||
cereal
|
||||
capnp
|
||||
openpilot.common
|
||||
openpilot.selfdrive.controls
|
||||
openpilot.selfdrive.debug
|
||||
openpilot.selfdrive.pandad
|
||||
openpilot.selfdrive.test
|
||||
openpilot.system
|
||||
openpilot.body
|
||||
openpilot.tools
|
||||
openpilot.docs
|
||||
openpilot.msgq
|
||||
openpilot.panda
|
||||
openpilot.rednose
|
||||
openpilot.release
|
||||
openpilot.teleoprtc
|
||||
openpilot.tinygrad
|
||||
ignore_imports =
|
||||
# these are okay
|
||||
openpilot.selfdrive.car.card -> openpilot.common.swaglog
|
||||
openpilot.selfdrive.car.card -> openpilot.common.realtime
|
||||
openpilot.selfdrive.car.card -> 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.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
|
||||
openpilot.selfdrive.car.card -> openpilot.common.params
|
||||
openpilot.selfdrive.car.tests.test_models -> openpilot.common.params
|
||||
openpilot.selfdrive.car.tests.test_models -> openpilot.common.basedir
|
||||
openpilot.selfdrive.car.card -> openpilot.selfdrive.pandad
|
||||
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.pandad
|
||||
openpilot.selfdrive.car.tests.test_models -> openpilot.selfdrive.pandad
|
||||
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.test.fuzzy_generation
|
||||
openpilot.selfdrive.car.tests.test_models -> capnp
|
||||
openpilot.selfdrive.car.tests.test_car_interfaces -> cereal
|
||||
openpilot.selfdrive.car.tests.test_car_interfaces -> cereal.messaging
|
||||
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.test.fuzzy_generation
|
||||
openpilot.selfdrive.car.tests.test_models -> cereal
|
||||
openpilot.selfdrive.car.tests.test_models -> cereal.messaging
|
||||
openpilot.selfdrive.car.card -> cereal
|
||||
openpilot.selfdrive.car.card -> cereal.messaging
|
||||
openpilot.selfdrive.car.car_specific -> openpilot.selfdrive.controls.lib.events
|
||||
openpilot.selfdrive.car.car_specific -> cereal
|
||||
openpilot.selfdrive.car.car_specific -> cereal.messaging
|
||||
openpilot.selfdrive.car.card -> capnp
|
||||
unmatched_ignore_imports_alerting = warn
|
||||
@@ -74,7 +74,6 @@ docs = [
|
||||
testing = [
|
||||
"coverage",
|
||||
"hypothesis ==6.47.*",
|
||||
"import-linter",
|
||||
"mypy",
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
|
||||
@@ -48,7 +48,6 @@ function run_tests() {
|
||||
PYTHON_FILES=$2
|
||||
|
||||
run "ruff" ruff check $PYTHON_FILES --quiet
|
||||
run "lint-imports" lint-imports
|
||||
run "check_added_large_files" python3 -m pre_commit_hooks.check_added_large_files --enforce-all $ALL_FILES --maxkb=120
|
||||
run "check_shebang_scripts_are_executable" python3 -m pre_commit_hooks.check_shebang_scripts_are_executable $ALL_FILES
|
||||
run "check_shebang_format" $DIR/check_shebang_format.sh $ALL_FILES
|
||||
@@ -69,7 +68,6 @@ function help() {
|
||||
echo -e "${BOLD}${UNDERLINE}Tests:${NC}"
|
||||
echo -e " ${BOLD}ruff${NC}"
|
||||
echo -e " ${BOLD}mypy${NC}"
|
||||
echo -e " ${BOLD}lint-imports${NC}"
|
||||
echo -e " ${BOLD}codespell${NC}"
|
||||
echo -e " ${BOLD}check_added_large_files${NC}"
|
||||
echo -e " ${BOLD}check_shebang_scripts_are_executable${NC}"
|
||||
|
||||
Reference in New Issue
Block a user