Browse Source

Add pre-commit hooks for checking common problems

tags/v1.9.6
Danielle McLean 1 year ago
parent
commit
3142c6073c
Signed by: Danielle McLean <dani@00dani.me> GPG Key ID: 8EB789DDF3ABD240
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      .pre-commit-config.yaml

+ 19
- 0
.pre-commit-config.yaml View File

@@ -0,0 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: autopep8-wrapper
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: flake8
- id: mixed-line-ending
args:
- --fix=lf
- id: name-tests-test
args:
- --django
- id: trailing-whitespace

Loading…
Cancel
Save