Skip to content

Instantly share code, notes, and snippets.

@luzfcb
Last active May 10, 2022 16:36
Show Gist options
  • Save luzfcb/8474bb0aa09b415b2a5879865568172e to your computer and use it in GitHub Desktop.
Save luzfcb/8474bb0aa09b415b2a5879865568172e to your computer and use it in GitHub Desktop.
repos:
- repo: https://github.com/browniebroke/django-codemod
# django-codemod is a tool to automatically
# fix Django deprecations.
# Any tag/version (>=1.10.2):
# 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.10.2
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',
'--deprecated-in', '3.0',
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment