pre-commit also handles pylint

This commit is contained in:
Adeeb Shihadeh
2020-06-04 14:19:10 -07:00
parent 355159f04a
commit 966e2d4154
3 changed files with 1 additions and 16 deletions
+1 -4
View File
@@ -36,8 +36,7 @@ jobs:
external/bin selfdrive/modeld/runners $TEST_DIR
# need these so docker copy won't fail
cp Pipfile Pipfile.lock pylint_openpilot.sh .pylintrc \
cppcheck_openpilot.sh .coveragerc-app .pre-commit-config.yaml $TEST_DIR
cp Pipfile Pipfile.lock .pylintrc cppcheck_openpilot.sh .coveragerc-app .pre-commit-config.yaml $TEST_DIR
cd $TEST_DIR
mkdir laika laika_repo tools release
- name: Build Docker image
@@ -73,8 +72,6 @@ jobs:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- name: pylint
run: $RUN "cd /tmp/openpilot/ && ./pylint_openpilot.sh"
- name: pre-commit
run: $RUN "cd /tmp/openpilot/ && git init && git add -A && pre-commit run --all"
- name: cppcheck