Skip to main content

pre-commit-hooks

Some useful hooks for Django development

See also: https://github.com/pre-commit/pre-commit

Using pre-commit-hooks with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/ecugol/pre-commit-hooks
    rev: v0.2.0  # Use the ref you want to point at
    hooks:
    -   id: check-untracked-migrations
        # Optional, if specified, hook will work only on these branchesm
        # otherwise it will work on all branches
        args: ["--branches", "main", "other_branch"]

Hooks available

check-untracked-migrations

Forbids commit if untracked migrations files are found (e.g. */migrations/0001_initial.py)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pre-commit-hooks-django-0.2.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pre_commit_hooks_django-0.2.0-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pre-commit-hooks-django-0.2.0.tar.gz.

File metadata

  • Download URL: pre-commit-hooks-django-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for pre-commit-hooks-django-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a0d86bc238161360c1883811b26e62e2967c0e632253548ded2f92ac118c1089
MD5 688348f2bcec4c3607fc9ee8ef613d8e
BLAKE2b-256 3b39d3563c21951d0dbc6d8d54932d90834a50290e8d402925fb7b51cff2ba84

See more details on using hashes here.

File details

Details for the file pre_commit_hooks_django-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pre_commit_hooks_django-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for pre_commit_hooks_django-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c12af1e77ac58e2c1d0e728225073c0246901dc65ca1389323a31c46dbd1b2f
MD5 80cdc30fe1f487c1e53c6658ebf3c642
BLAKE2b-256 a8d615730314c83d2cd2574781474bc5b7cf08a761c3c3d8432f6e95e8e0799b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page