From 9b2455ca851e5f5e4cbd7178a9f6ef19ff2c4817 Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Thu, 23 Dec 2021 11:54:23 -0500 Subject: [PATCH] pre-commit --- .pre-commit-config.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 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..c23ef6c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 # Use the ref you want to point at + hooks: + - id: check-case-conflict + - id: check-json + - id: check-merge-conflict + - id: end-of-file-fixer + - id: no-commit-to-branch + args: + - "--branch=main" + - id: pretty-format-json + args: + - "--autofix" + - "--indent=2" + - "--top-keys=dev,beta,stable,changelogs,title,items" + - id: trailing-whitespace + - repo: https://github.com/ambv/black + rev: 21.12b0 + hooks: + - id: black