Skip to content

Commit 8f1dd09

Browse files
committed
add linting workflow
1 parent 09e08ee commit 8f1dd09

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint (type checking, security, code quality, ruff)
2+
3+
on:
4+
push:
5+
branches:
6+
- "henryh/add-linting-workflow"
7+
pull_request:
8+
branches:
9+
- "master"
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
linting:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
lfs: false
23+
24+
- name: Set up Python 3.10
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: 3.10.10
28+
pip-version: 24
29+
30+
- name: Linting
31+
run: |
32+
pip install pre-commit interrogate
33+
pre-commit run --all-files

0 commit comments

Comments
 (0)