add script to automatically format fingerprints file (#30792)

* Add script

* fix script

* fix script

* fix for subaddr

* run the script

* old style can fingerprints

* cleanup

* sort imports, make executable, fix path

* newline w/o newline

* match og can formatting

* match og formatting

* generate template once

* standard name

* less nested

* can fingerprints comments

* fix spacing

* no need for PLATFORM_TO_ENUM_NAME!

* prep for PRs

* comments for all, add honda comments

* Auto-generated fingerprint PR from fuzzy fingerprinting cars

* Revert "Auto-generated fingerprint PR from fuzzy fingerprinting cars"

This reverts commit 97bc9e3bdb9d819dcbe684ceba92ea702d40eaf0.

* even closer to original

* readd this comment

* and run script

* add to precommit

* add comments

* add comments

* add to release

* use for auto fingerprint

* disable precommit for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3713e4d5eaed783738ea8ecdbd3b7e6abaa974c0
This commit is contained in:
Justin Newberry
2023-12-20 11:18:29 -08:00
committed by GitHub
parent a918ee9b72
commit 611e3fe8e7
16 changed files with 553 additions and 481 deletions

View File

@@ -89,3 +89,10 @@ repos:
rev: 0.27.2
hooks:
- id: check-github-workflows
# - repo: local
# hooks:
# - id: format-fingerprints
# name: format-fingerprints
# entry: selfdrive/debug/format_fingerprints.py
# language: system
# types: [python]