From 3142c6073c32be6ec464484ad0ce8ce285139710 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 19 Apr 2018 10:25:23 +1000 Subject: [PATCH] Add pre-commit hooks for checking common problems --- .pre-commit-config.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ea8d61e --- /dev/null +++ b/.pre-commit-config.yaml @@ -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