Skip to content

Commit e3eee3a

Browse files
committed
Re-add the linter
This reverts commit 82f6144.
1 parent 82f6144 commit e3eee3a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: lint-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
8+
cancel-in-progress: true
9+
10+
defaults:
11+
run:
12+
shell: bash -l -eo pipefail {0}
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: ['3.11']
20+
steps:
21+
- name: Check out repo
22+
uses: actions/checkout@v3
23+
- name: Setup python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Update pip
28+
run: python -m pip install --upgrade pip
29+
- name: Install lint utilities
30+
run: |
31+
python -m pip install pre-commit
32+
pre-commit install-hooks
33+
- id: file_changes
34+
uses: trilom/[email protected]
35+
with:
36+
prNumber: ${{ github.event.number }}
37+
output: ' '
38+
- name: Lint modified files
39+
run: pre-commit run --files ${{ steps.file_changes.outputs.files }}

0 commit comments

Comments
 (0)