Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ permissions:

jobs:
lint:
strategy:
matrix:
cmd: ["black", "ruff", "mypy"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -30,7 +27,7 @@ jobs:
- name: Install deps
run: uv sync --all-extras
- name: Run lint check
run: uv run pre-commit run -a ${{ matrix.cmd }}
run: uv run prek run -a
pytest:
strategy:
matrix:
Expand Down
18 changes: 7 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
- repo: builtin
hooks:
- id: check-ast
- id: trailing-whitespace
- id: check-toml
- id: end-of-file-fixer

- repo: https://github.com/asottile/add-trailing-comma
rev: v4.0.0
hooks:
- id: add-trailing-comma

- repo: https://github.com/crate-ci/typos
rev: v1.38.1
rev: v1.50.3
hooks:
- id: typos

Expand All @@ -24,6 +15,11 @@ repos:
hooks:
- id: detect-secrets

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.30.1
hooks:
- id: zizmor

- repo: local
hooks:
- id: black
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies = [

[dependency-groups]
dev = [
"pre-commit>=4.4.0",
"prek>=0.5.4",
# lint
"ruff>=0.16.9",
"black>=26.5.1",
Expand All @@ -48,6 +48,7 @@ dev = [
"coverage>=7.11.3",
"pytest-xdist[psutil]>=3.8.0",
"anyio>=4.11.0",
"zizmor>=1.30.1",
]

[build-system]
Expand Down Expand Up @@ -118,8 +119,8 @@ lint.ignore = [
"PLR0913", # Too many arguments for function call
"D106", # Missing docstring in public nested class
]
exclude = [".venv/"]
lint.mccabe = { max-complexity = 10 }
exclude = [".venv/"]
line-length = 88

[tool.ruff.lint.per-file-ignores]
Expand Down
Loading
Loading