Skip to content

Commit 07a3d28

Browse files
committed
ci: Add lint & format github workflow
1 parent 1cc6168 commit 07a3d28

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Format & Lint Python Code
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.10", "3.13"]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies and pystrom
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install -U .[dev]
21+
- name: Check code formatting with black
22+
run: |
23+
python -m black --check .
24+
- name: Install mypy types
25+
run: |
26+
python -m mypy --install-types
27+
- name: Check typing with mypy
28+
run: |
29+
python -m mypy --strict .

0 commit comments

Comments
 (0)