From 035b9b799088031baefa2424014a8047beb625f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= <6774676+eumiro@users.noreply.github.com> Date: Sat, 26 Dec 2020 20:44:12 +0100 Subject: [PATCH] add pre-commit to gh and fix isort --- .github/workflows/pre-commit.yml | 14 ++++++++++++++ .pre-commit-config.yaml | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..418fe72 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,14 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: pre-commit/action@v2.0.0 \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d224dc..8a126d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,9 @@ repos: rev: 5.6.4 hooks: - id: isort + args: + - -m3 + - --tc - repo: https://github.com/PyCQA/bandit rev: 1.7.0 hooks: