Skip to content

Commit 13f023a

Browse files
committed
Update test logic
1 parent 7ae6c75 commit 13f023a

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,9 @@ jobs:
3333
run: |
3434
uv sync --dev
3535
36-
- name: Lint with black
36+
- name: Run pre-commit
3737
run: |
38-
uvx ruff --check .
39-
40-
- name: Type check with mypy
41-
run: |
42-
uv run mypy tempmail
38+
uv run pre-commit run --all-files
4339
4440
- name: Test with pytest
4541
run: |

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
exclude: '.git'
2+
default_stages: [ commit ]
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v3.4.0
7+
hooks:
8+
- id: trailing-whitespace
9+
- id: check-yaml
10+
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.12.4
13+
hooks:
14+
- id: ruff-check
15+
args: [ --fix ]
16+
- id: ruff-format
17+
18+
- repo: https://github.com/astral-sh/uv-pre-commit
19+
rev: v0.8.17
20+
hooks:
21+
- id: uv-sync
22+
args: [ --dev ]
23+
- id: uv-lock
24+
args: [ --dev ]

0 commit comments

Comments
 (0)