We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46ed9dd commit 819882fCopy full SHA for 819882f
.github/workflows/check.yml
@@ -0,0 +1,40 @@
1
+name: Python Checks
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
+permissions:
9
+ contents: read
10
11
+jobs:
12
+ lint-and-typecheck:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v4
18
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: "3.12"
23
24
+ - name: Install uv
25
+ run: |
26
+ curl -LsSf https://astral.sh/uv/0.9.7/install.sh | sh
27
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
28
29
+ - name: Install dependencies
30
31
+ uv sync
32
33
+ - name: Run Ruff (lint + format check)
34
35
+ uv run ruff check .
36
+ uv run ruff format --check .
37
38
+ - name: Run Mypy (type check)
39
40
+ uv run mypy .
0 commit comments