Skip to content

Commit

Permalink
chore: Update static_code_check.yml with third-party tool for code fo…
Browse files Browse the repository at this point in the history
…rmatting
  • Loading branch information
TayYim committed Jun 11, 2024
1 parent 8e00d80 commit eac1768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/static_code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,8 @@ 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
uses: peter-evans/autopep8@v2.0.0
uses: peter-evans/autopep8@v2
with:
args: --max-line-length=120 --ignore=E731 --recursive --in-place .

Expand Down
1 change: 1 addition & 0 deletions scenario_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
try:
# requires Python 3.8+
from importlib.metadata import metadata

def get_carla_version():
"""get the version of the CARLA package
"""
Expand Down
2 changes: 1 addition & 1 deletion srunner/tests/carla_mocks/carla.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def get_settings(self):

def get_map(self):
return self.map

def set_map(self, map):
self.map = map

Expand Down

0 comments on commit eac1768

Please sign in to comment.