Skip to content

UnknownPlatypus/djangofmt-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djangofmt-pre-commit

A pre-commit hook for djangofmt.

Distributed as a standalone repository to enable installing djangofmt via prebuilt wheels from PyPI.

Installation

Add the following to your .pre-commit-config.yaml:

repos:
- repo: https://github.com/UnknownPlatypus/djangofmt-pre-commit
  rev: v0.2.11
  hooks:
    - id: djangofmt

To also lint your templates, add the djangofmt-check hook:

repos:
- repo: https://github.com/UnknownPlatypus/djangofmt-pre-commit
  rev: v0.2.11
  hooks:
    - id: djangofmt
    - id: djangofmt-check

Pass args: [--fix] to djangofmt-check to apply safe fixes automatically.

About

A pre-commit hook for djangofmt

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages