Skip to content

Commit

Permalink
format hashfiles path
Browse files Browse the repository at this point in the history
  • Loading branch information
bloombar committed Nov 25, 2023
1 parent c54109a commit 757073a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ jobs:
# repeat same job for each subsystem in the following subdirectories
subdir: [web-app, machine-learning-client]
steps:
- name: Set working directory
run: |
working-directory: ${{ matrix.subdir }}
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -25,14 +22,14 @@ jobs:
pipenv sync --dev --python $(which python)
pipenv shell --fancy --python $(which python)
- name: Lint with pylint
if: ${{ hashFiles('**/*.py') != '' }}
if: ${{ hashFiles(format('{0}/**/*.py'), matrix.subdir) != '' }}
# you may set pylint to ignore any files or dependencies that make no sense to lint
run: |
pwd
cd ${{ matrix.subdir }}}
pipenv run pylint **/*.py
- name: Format with black
if: ${{ hashFiles('**/*.py') != '' }}
if: ${{ hashFiles(format('{0}/**/*.py'), matrix.subdir) != '' }}
# you may set black to ignore any files or dependencies that make no sense to format
run: |
pwd
cd ${{ matrix.subdir }}}
pipenv run black --diff --check .

0 comments on commit 757073a

Please sign in to comment.