From 98c482f86dc7da59b1f5324bb0c38ea2994e6b57 Mon Sep 17 00:00:00 2001 From: Zach Bentzinger Date: Tue, 15 Feb 2022 15:20:58 -0700 Subject: [PATCH] Add pre-commit-config template for django applications. --- pre-commit-config-django.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pre-commit-config-django.yaml diff --git a/pre-commit-config-django.yaml b/pre-commit-config-django.yaml new file mode 100644 index 0000000..2bbb889 --- /dev/null +++ b/pre-commit-config-django.yaml @@ -0,0 +1,31 @@ +default_language_version: + # default language version for each language + python: python3.7 +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 + hooks: + # See https://pre-commit.com/hooks.html for more hooks + - id: check-ast + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-merge-conflict + - id: debug-statements + - id: end-of-file-fixer + - id: name-tests-test + args: [ "--django" ] + - id: trailing-whitespace + - id: check-json + - id: check-toml + - id: check-xml + - id: check-yaml + - id: pretty-format-json +# # isort sorts the imports +# - repo: https://github.com/asottile/seed-isort-config +# rev: v2.2.0 +# hooks: +# - id: seed-isort-config +# - repo: https://github.com/pycqa/isort +# rev: 5.10.1 +# hooks: +# - id: isort