diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 80ac12af..8ef9c0f1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,3 +27,13 @@ jobs: if: matrix.os == 'Windows' && matrix.python == '2.7' - run: nox -s tests-${{ matrix.python }} + + pre-commit: + name: Pre-Commit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Setup flake8 annotations + uses: rbialon/flake8-annotations@v1 + - uses: pre-commit/action@v2.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..a4cf61eb --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://gitlab.com/pycqa/flake8 + rev: "3.8.4" + hooks: + - id: flake8