From 987d04899da9e7df845b4f33eed72ccf8b166624 Mon Sep 17 00:00:00 2001 From: Jaap Joris Vens Date: Sun, 24 Jan 2021 17:43:52 +0100 Subject: [PATCH] Poof! --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 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..9e79ed8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + + # Remove unused imports + - repo: https://github.com/myint/autoflake + rev: v1.4 + hooks: + - id: autoflake + args: ['--in-place', '--remove-all-unused-imports'] + + # Sort imports + - repo: https://github.com/PyCQA/isort + rev: 5.7.0 + hooks: + - id: isort