Last active
November 19, 2021 16:11
-
-
Save luzfcb/c056e103cc527d4b60a807e9b5e56c6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repos: | |
- repo: https://github.com/browniebroke/django-codemod | |
# django-codemod is a tool to automatically | |
# fix Django deprecations. | |
# Any tag/version (>=1.5.6): | |
# https://github.com/browniebroke/django-codemod/tags | |
# | |
# Automatic execution of this hook has been disabled | |
# because it is a bit slow but its configuration is | |
# kept here so it can be easily run: | |
# | |
# pre-commit run --hook-stage manual djcodemod | |
rev: v1.6.3 | |
hooks: | |
- id: djcodemod | |
stages: [manual] | |
args: [ | |
'run', | |
'--deprecated-in', '1.9', | |
'--deprecated-in', '1.10', | |
'--deprecated-in', '1.11', | |
'--deprecated-in', '2.0', | |
'--deprecated-in', '2.1', | |
'--deprecated-in', '2.2', | |
] | |
- repo: https://github.com/asottile/pyupgrade | |
rev: v2.29.1 | |
hooks: | |
- id: pyupgrade | |
args: ['--py3-plus', '--py39-plus'] | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.0.1 | |
hooks: | |
- id: fix-byte-order-marker | |
- id: check-case-conflict | |
- id: check-merge-conflict | |
- id: check-symlinks | |
- id: debug-statements | |
- id: detect-private-key | |
- id: double-quote-string-fixer | |
- id: mixed-line-ending | |
- id: no-commit-to-branch | |
args: [--branch, main, --branch, master] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment