Skip to content

Commit

Permalink
Ignore all 'manage_externals' files in Github Action pylint routine.
Browse files Browse the repository at this point in the history
  • Loading branch information
nusbaume committed Oct 9, 2023
1 parent 39839f8 commit b63c56e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/scripts/pr_mod_file_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,15 @@ def _main_prog():
#PR itself, so don't check its file type:
if os.path.exists(file_obj.filename):

#Check if it is a python file:
if _file_is_python(file_obj.filename):
#If so, then add to python list:
pyfiles.append(file_obj.filename)
#Don't analyze 'manage_externals' files,
#as they are an external repo and thus
#not our responsibility:
if not 'manage_externals' in file_obj.filename:

#Check if it is a python file:
if _file_is_python(file_obj.filename):
#If so, then add to python list:
pyfiles.append(file_obj.filename)

#++++++++++++++++++++++++++++++++++++++++++++
#Check if any python files are being modified:
Expand Down

0 comments on commit b63c56e

Please sign in to comment.