Skip to content

Commit e79b35f

Browse files
committed
Don't install pre-commit in the virtualenv
1 parent d2bd3f1 commit e79b35f

5 files changed

Lines changed: 11 additions & 118 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14+
pre-commit:
15+
name: pre-commit
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v5
20+
- uses: actions/setup-python@v6
21+
- uses: pre-commit/action@v3.0.1
22+
1423
tox:
1524
name: ${{ matrix.toxenv }}
1625
runs-on: ubuntu-latest
@@ -22,7 +31,6 @@ jobs:
2231
matrix:
2332
toxenv:
2433
- py,test-coverage
25-
- lint
2634
- mypy
2735

2836
steps:

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tools]
2+
pre-commit = "latest"
23
python = "3.14.0"
34

45
[env]
@@ -7,4 +8,5 @@ _.python.venv = { path = ".venv", create = true }
78
[hooks]
89
postinstall = [
910
"uv sync --active",
11+
"pre-commit install",
1012
]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ allow-multiline = false
7575
dev = [
7676
"coverage~=7.12.0",
7777
"mypy~=1.18.2",
78-
"pre-commit~=4.4.0",
7978
"pytest~=9.0.0",
8079
"pytest-cov~=7.0.0",
8180
"pytest-randomly~=4.0.1",

tox.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ commands =
1717
commands =
1818
coverage report --skip-covered --show-missing --fail-under=100 --include="tests/*"
1919

20-
[testenv:lint]
21-
commands =
22-
pre-commit run --all-files
23-
2420
[testenv:mypy]
2521
commands =
2622
mypy --show-error-codes {posargs: src tests}

uv.lock

Lines changed: 0 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)