There was an error while loading. Please reload this page.
1 parent 1cc6168 commit 07a3d28Copy full SHA for 07a3d28
1 file changed
.github/workflows/lint.yml
@@ -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
23
+ python -m black --check .
24
+ - name: Install mypy types
25
26
+ python -m mypy --install-types
27
+ - name: Check typing with mypy
28
29
+ python -m mypy --strict .
0 commit comments