From 6e36dc51f8bd087eb79420ca074034867cb56b2d Mon Sep 17 00:00:00 2001 From: Ely Deckers Date: Wed, 2 Mar 2022 15:17:38 +0100 Subject: [PATCH] style: add isort commit hook --- .pre-commit-config.yaml | 14 +++++++++----- src/requirements.txt | 3 --- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00e76e9..c5642a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,18 @@ repos: - repo: https://github.com/pycqa/pylint rev: pylint-2.6.0 hooks: - - id: pylint - args: [--rcfile=src/pylintrc] + - id: pylint + args: [--rcfile=src/pylintrc] - repo: https://github.com/jorisroovers/gitlint rev: v0.17.0 hooks: - - id: gitlint - args: [--staged, --msg-filename] - stages: [commit-msg] + - id: gitlint + args: [--staged, --msg-filename] + stages: [commit-msg] + - repo: https://github.com/pycqa/isort + rev: 5.10.1 + hooks: + - id: isort - repo: https://github.com/ambv/black rev: 22.1.0 hooks: diff --git a/src/requirements.txt b/src/requirements.txt index 3b9baa9..00a9ef9 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,5 +1,2 @@ -black==22.1.0 -gitlint==0.17.0 pre-commit==2.17.0 -pylint==2.9.1 PyYAML==6.0