Skip to content

Respect per-file ignores for blanket and redirected noqa rules - #11728

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/noqa
Jun 4, 2024
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/noqa

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

Summary

Ensures that we respect per-file ignores and exemptions for these rules. Specifically, we allow:

# ruff: noqa: PGH004

...to ignore PGH004.

@charliermarsh charliermarsh added the bug An issue describing something that isn't working, or a PR that fixes a bug label Jun 4, 2024
@charliermarsh
charliermarsh enabled auto-merge (squash) June 4, 2024 03:54
@charliermarsh
charliermarsh merged commit 0c75548 into main Jun 4, 2024
@charliermarsh
charliermarsh deleted the charlie/noqa branch June 4, 2024 03:58
@github-actions

github-actions Bot commented Jun 4, 2024

Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

carljm added a commit that referenced this pull request Jun 4, 2024
* main:
  CI: add job to run tests under minimum supported rust version (msrv) (#11737)
  Lexer should consider BOM for the start offset (#11732)
  Use cursor offset for lexer checkpoint (#11734)
  red-knot: Change `resolve_global_symbol` to take `Module` as an argument (#11723)
  red-knot: Use `parse_unchecked` to get all parse errors (#11725)
  Respect per-file ignores for blanket and redirected noqa rules (#11728)
  [`pygrep_hooks`] Check blanket ignores via file-level pragmas (`PGH004`) (#11540)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue describing something that isn't working, or a PR that fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant