mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 15:23:57 +08:00
pre-commit: validate poetry lock (#28313)
* Add CI step to validate lock file
* Fix run script
* Build docker image before running the check
* Fix
* Use setup instead of docker build
* Add pre-commit check
* Update hooks
* Add files to lock validation hook
* Add pyproject.toml and poetry.lock to release files
* Cleanup
old-commit-hash: 23de5f1bac
This commit is contained in:
2
.github/workflows/selfdrive_tests.yaml
vendored
2
.github/workflows/selfdrive_tests.yaml
vendored
@@ -59,6 +59,8 @@ jobs:
|
||||
cp .pre-commit-config.yaml $STRIPPED_DIR
|
||||
cp .pylintrc $STRIPPED_DIR
|
||||
cp mypy.ini $STRIPPED_DIR
|
||||
cp pyproject.toml $STRIPPED_DIR
|
||||
cp poetry.lock $STRIPPED_DIR
|
||||
cd $STRIPPED_DIR
|
||||
${{ env.RUN }} "pre-commit run --all"
|
||||
|
||||
|
||||
@@ -83,3 +83,7 @@ repos:
|
||||
rev: '1.5.0'
|
||||
hooks:
|
||||
- id: poetry-check
|
||||
- id: poetry-lock
|
||||
name: validate poetry lock
|
||||
args:
|
||||
- --check
|
||||
|
||||
Reference in New Issue
Block a user