forked from carla-simulator/scenario_runner
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update static_code_check.yml with 3-party tool
- Loading branch information
Showing
1 changed file
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,22 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install pep8 python3-autopep8 python3-pep8 python-is-python3 | ||
# - name: Check Code Format | ||
# run: | | ||
# autopep8 srunner/scenariomanager/*.py --in-place --max-line-length=120 --ignore=E731 | ||
# autopep8 srunner/scenariomanager/scenarioatomics/*.py --in-place --max-line-length=120 | ||
# autopep8 srunner/scenarios/*.py --in-place --max-line-length=120 | ||
# autopep8 srunner/tools/*.py --in-place --max-line-length=120 | ||
# autopep8 srunner/scenarioconfigs/*.py --in-place --max-line-length=120 | ||
# autopep8 scenario_runner.py --in-place --max-line-length=120 | ||
# autopep8 srunner/autoagents/*.py --in-place --max-line-length=120 | ||
# git diff --quiet HEAD --; if [ ! $? -eq 0 ]; then echo "Code is not autopep8 compliant. Please run code_check_and_formatting.sh"; git diff HEAD --; fi | ||
|
||
- name: Check Code Format | ||
run: | | ||
autopep8 srunner/scenariomanager/*.py --in-place --max-line-length=120 --ignore=E731 | ||
autopep8 srunner/scenariomanager/scenarioatomics/*.py --in-place --max-line-length=120 | ||
autopep8 srunner/scenarios/*.py --in-place --max-line-length=120 | ||
autopep8 srunner/tools/*.py --in-place --max-line-length=120 | ||
autopep8 srunner/scenarioconfigs/*.py --in-place --max-line-length=120 | ||
autopep8 scenario_runner.py --in-place --max-line-length=120 | ||
autopep8 srunner/autoagents/*.py --in-place --max-line-length=120 | ||
git diff --quiet HEAD --; if [ ! $? -eq 0 ]; then echo "Code is not autopep8 compliant. Please run code_check_and_formatting.sh"; git diff HEAD --; fi | ||
uses: peter-evans/[email protected] | ||
with: | ||
# Arguments to pass to autopep8 | ||
args: --max-line-length=120 --ignore=E731 | ||
|
||
qualityJob: | ||
name: Check Code Quality | ||
|