Skip to content

Commit 482399f

Browse files
python linting
1 parent 31e5014 commit 482399f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/check.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,24 @@ jobs:
1111
steps:
1212
# Set up
1313
- uses: actions/checkout@v4
14+
1415
- uses: actions/setup-node@v4
1516
with:
1617
node-version: "20" # Oldest LTS at time of writing
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.x"
22+
1723
- run: npm ci
24+
- run: pip install mitmproxy ruff mypy
1825

19-
# Run checks
26+
# Run JS checks
2027
- run: npm run format:check
2128
- run: npm run lint:check
2229
- run: npm run build
30+
31+
# Run Python checks
32+
- run: ruff format --check
33+
- run: ruff check
34+
- run: mypy

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.mypy]
2+
files = "src/python/**/*.py"
3+
strict = true

0 commit comments

Comments
 (0)