Skip to content

Commit 08b8f4e

Browse files
committed
chore(pre-commit): update ruff version to v0.9.1 and add pytest hook for local testing
chore(pyproject.toml): remove unused uv and ruff configurations, and add pytest settings for test discovery and asyncio mode
1 parent 2f000d0 commit 08b8f4e

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.1.0
3+
rev: v0.9.1
44
hooks:
55
- id: ruff
66
args: [ --fix ]
77
- id: ruff-format
8+
9+
- repo: local
10+
hooks:
11+
- id: pytest
12+
name: pytest
13+
entry: uv run pytest
14+
language: system
15+
types: [python]
16+
pass_filenames: false
17+
always_run: true

pyproject.toml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ dev = [
2020
"pre-commit>=3.6.0",
2121
]
2222

23-
[tool.uv]
24-
package = false
25-
26-
[tool.ruff]
27-
line-length = 88
28-
target-version = "py310"
29-
30-
[build-system]
31-
requires = ["hatchling"]
32-
build-backend = "hatchling.build"
23+
[tool.pytest.ini_options]
24+
pythonpath = ["."]
25+
testpaths = ["tests"]
26+
asyncio_mode = "strict"

0 commit comments

Comments
 (0)