Skip to content

Commit

Permalink
added pre-commit to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
amirreza8002 committed Oct 3, 2024
1 parent ded92f7 commit e792993
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.21.0
hooks:
- id: django-upgrade
args: [--target-version, "5.1"]

- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
hooks:
- id: ruff
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ tox = "^4.18.0"
coverage = "^7.6.1"
django-coverage-plugin = "^3.1.0"
pytest-asyncio = "^0.24.0"
pre-commit = "^3.8.0"


[tool.poetry.group.docs.dependencies]
Expand Down

0 comments on commit e792993

Please sign in to comment.