Skip to content

Commit

Permalink
Re-add the linter
Browse files Browse the repository at this point in the history
This reverts commit 82f6144.
  • Loading branch information
wconstab committed Feb 23, 2024
1 parent 82f6144 commit e3eee3a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Lint

on:
pull_request:

concurrency:
group: lint-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash -l -eo pipefail {0}

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install lint utilities
run: |
python -m pip install pre-commit
pre-commit install-hooks
- id: file_changes
uses: trilom/file-changes-action@v1.2.4
with:
prNumber: ${{ github.event.number }}
output: ' '
- name: Lint modified files
run: pre-commit run --files ${{ steps.file_changes.outputs.files }}

0 comments on commit e3eee3a

Please sign in to comment.