Skip to content

Commit

Permalink
simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Aug 7, 2024
1 parent ae2634b commit c4b8639
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/selfdrive_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
cd $GITHUB_WORKSPACE
cp pyproject.toml $STRIPPED_DIR
cd $STRIPPED_DIR
${{ env.RUN }} "scripts/lint.sh --files '$(echo $FILES | tr " " "\n")'"
${{ env.RUN }} "scripts/lint.sh '$(echo $FILES | tr " " "\n")'"
build:
strategy:
Expand Down
10 changes: 2 additions & 8 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function run() {
FAILED=1
fi
set -e
}
function run_tests() {
Expand All @@ -55,13 +54,8 @@ function run_tests() {
return $FAILED
}
case $1 in
--files ) shift 1; FILES="$@" ;;
--all ) shift 1; ALL="1" ;;
esac
if [[ -n $FILES ]]; then
run_tests "$FILES"
if [[ -n $@ ]]; then
run_tests "$@"
else
run_tests "$(git diff --name-only --cached --diff-filter=AM $(git merge-base HEAD master))"
fi
1 change: 1 addition & 0 deletions selfdrive/ui/ui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import os
import signal
#aaaaa

signal.signal(signal.SIGINT, signal.SIG_DFL)

Expand Down

0 comments on commit c4b8639

Please sign in to comment.