From 837f7e3b7b7855e8c515f2818c534eaa8adcb33e Mon Sep 17 00:00:00 2001 From: Shashank Bansal Date: Mon, 27 Sep 2021 11:54:08 -0700 Subject: [PATCH] init a pre-commit file --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 00000000..8a80a69b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: check-json + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/psf/black + rev: 21.7b0 + hooks: + - id: black + exclude: ^(fitlins/_version.py|versioneer.py) + - repo: https://github.com/pycqa/isort + rev: 5.9.3 + hooks: + - id: isort + name: Sort python imports (isort) + args: ["--profile", "black", "--filter-files"] + - repo: https://github.com/asottile/pyupgrade + rev: v2.23.3 + hooks: + - id: pyupgrade + exclude: ^(fitlins/_version.py|versioneer.py)