Skip to content

Commit e792993

Browse files
committed
added pre-commit to the project
1 parent ded92f7 commit e792993

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/adamchainz/django-upgrade
3+
rev: 1.21.0
4+
hooks:
5+
- id: django-upgrade
6+
args: [--target-version, "5.1"]
7+
8+
- repo: https://github.com/psf/black
9+
rev: 24.8.0
10+
hooks:
11+
- id: black
12+
13+
- repo: https://github.com/astral-sh/ruff-pre-commit
14+
rev: v0.6.8
15+
hooks:
16+
- id: ruff

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ tox = "^4.18.0"
6565
coverage = "^7.6.1"
6666
django-coverage-plugin = "^3.1.0"
6767
pytest-asyncio = "^0.24.0"
68+
pre-commit = "^3.8.0"
6869

6970

7071
[tool.poetry.group.docs.dependencies]

0 commit comments

Comments
 (0)