Skip to content

Commit 7781ce9

Browse files
committed
Wrap ruff with pre-commit
1 parent f81047e commit 7781ce9

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.11.13
4+
hooks:
5+
- id: ruff
6+
name: ruff lint
7+
args: ["--fix"]
8+
- id: ruff-format
9+
name: ruff format

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ commands =
3535

3636
[testenv:py39-lint]
3737
deps =
38-
ruff==0.11.13
38+
pre-commit==4.2.0
3939
commands =
40-
ruff format --check django_prometheus/
41-
ruff check django_prometheus/
40+
pre-commit run --all-files

0 commit comments

Comments
 (0)