From b39569ea9921cff1166dc4bfeb3e2f830d7f55be Mon Sep 17 00:00:00 2001 From: bloombar Date: Wed, 15 Nov 2023 04:10:33 -0500 Subject: [PATCH] hashfiles redundant --- .github/workflows/lint.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c7f26c1..46ec4c4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,7 +3,6 @@ on: [push] jobs: lint: - if: ${{ hashFiles('**/*.py') != '' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -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 .