Skip to content

Replace noqa with custom keyword for linter#31

Merged
mortenkrane merged 1 commit intomainfrom
claude/custom-linter-keyword-015htQN6RMGCySzfRmWJVhcj
Nov 25, 2025
Merged

Replace noqa with custom keyword for linter#31
mortenkrane merged 1 commit intomainfrom
claude/custom-linter-keyword-015htQN6RMGCySzfRmWJVhcj

Conversation

@mortenkrane
Copy link

Replace the 'noqa' keyword with 'noida' to avoid conflicts with ruff. Ruff doesn't accept 'noqa' comments that don't match ruff rules, so using a custom keyword 'noida' (no-oida) prevents these conflicts.

Changes:

  • Renamed parse_noqa_comment() to parse_noida_comment()
  • Updated regex to match 'noida' instead of 'noqa'
  • Updated all tests to use 'noida' keyword
  • Updated README.md documentation
  • Added BREAKING CHANGE note in CHANGELOG.md

This is a breaking change - users must replace all '# noqa' comments with '# noida' comments in their code.

Replace the 'noqa' keyword with 'noida' to avoid conflicts with ruff.
Ruff doesn't accept 'noqa' comments that don't match ruff rules, so
using a custom keyword 'noida' (no-oida) prevents these conflicts.

Changes:
- Renamed parse_noqa_comment() to parse_noida_comment()
- Updated regex to match 'noida' instead of 'noqa'
- Updated all tests to use 'noida' keyword
- Updated README.md documentation
- Added BREAKING CHANGE note in CHANGELOG.md

This is a breaking change - users must replace all '# noqa' comments
with '# noida' comments in their code.
@mortenkrane mortenkrane merged commit cf40ab0 into main Nov 25, 2025
5 checks passed
@mortenkrane mortenkrane deleted the claude/custom-linter-keyword-015htQN6RMGCySzfRmWJVhcj branch November 25, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants