Check NoQA comments with Ruff

This uses the special 'RUF100' code to check NoQA comments.
https://github.com/charliermarsh/ruff#automating-noqa-directives
This commit is contained in:
Adam Turner 2022-12-29 17:05:05 +00:00
parent 8634fbce60
commit 5a46d8d7e1
2 changed files with 0 additions and 15 deletions

View File

@ -43,13 +43,3 @@ jobs:
python -m pip install --upgrade ruff
- name: Lint with Ruff
run: ruff . --diff --format github
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

View File

@ -1,5 +0,0 @@
repos:
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa