From 841c0cecb3e143937cfd21899334f456ab324c3b Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Thu, 15 Dec 2022 17:34:42 +0000 Subject: [PATCH] check for blanket noqas in CI --- .github/workflows/lint.yml | 10 ++++++++++ .pre-commit-config.yaml | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ee41e265b..b336f1584 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,3 +27,13 @@ jobs: run: python -m pip install -U tox pip - name: Run Tox run: tox -e ${{ matrix.tool }} + + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set Up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..453c76169 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.9.0 + hooks: + - id: python-check-blanket-noqa