mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
8634fbce60
commit
5a46d8d7e1
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
@ -1,5 +0,0 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pygrep-hooks
|
||||
rev: v1.9.0
|
||||
hooks:
|
||||
- id: python-check-blanket-noqa
|
Loading…
Reference in New Issue
Block a user