Skip to content

Commit

Permalink
Adding django-upgrade pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszh committed Aug 25, 2024
1 parent 31f92f2 commit 69c8d60
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
default_language_version:
python: python3.12

repos:
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.20.0"
hooks:
- id: django-upgrade
args: [ --target-version, "4.2" ]
9 changes: 9 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- id: django-upgrade
name: django-upgrade
description: Automatically upgrade your Django project code.
entry: django-upgrade
language: python
types: [python]
# for backward compatibility
files: ''
minimum_pre_commit_version: 0.15.0

0 comments on commit 69c8d60

Please sign in to comment.