Skip to content

Commit

Permalink
hashfiles redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
bloombar committed Nov 15, 2023
1 parent b44f017 commit b39569e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on: [push]

jobs:
lint:
if: ${{ hashFiles('**/*.py') != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -12,14 +11,17 @@ jobs:
with:
python-version: "3.10"
- name: Install dependencies
if: ${{ hashFiles('**/*.py') != '' }}
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv sync --dev --python $(which python)
pipenv shell --fancy --python $(which python)
- name: Lint with pylint
if: ${{ hashFiles('**/*.py') != '' }}
run: |
pipenv run pylint **/*.py
- name: Format with black
if: ${{ hashFiles('**/*.py') != '' }}
run: |
pipenv run black --diff --check .

0 comments on commit b39569e

Please sign in to comment.