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 @@
1
+repos:
2
+  - repo: https://github.com/pre-commit/pre-commit-hooks
3
+    rev: v1.2.3
4
+    hooks:
5
+      - id: autopep8-wrapper
6
+      - id: check-byte-order-marker
7
+      - id: check-case-conflict
8
+      - id: check-json
9
+      - id: check-merge-conflict
10
+      - id: check-yaml
11
+      - id: end-of-file-fixer
12
+      - id: flake8
13
+      - id: mixed-line-ending
14
+        args:
15
+          - --fix=lf
16
+      - id: name-tests-test
17
+        args:
18
+          - --django
19
+      - id: trailing-whitespace

Loading…
Cancel
Save