Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 560 Bytes

pre-commit-hook.md

File metadata and controls

24 lines (17 loc) · 560 Bytes

(pre-commit-hook)=

Pre-commit hook


This tool can be run as pre-commit hook with pre-commit. Add the following to your .pre-commit-config.yaml:

- repo: https://github.com/browniebroke/django-codemod
  # Any tag/version (>1.2.0):
  # https://github.com/browniebroke/django-codemod/tags
  rev: v1.2.0
  hooks:
    - id: djcodemod
      # Update arguments that suits you
      args: ["run", "--deprecated-in", "3.0"]

Then run pre-commit install and you’re ready to go.