mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Add internal hidden rules for testing (#9747)
Updated implementation of https://github.com/astral-sh/ruff/pull/7369 which was left out in the cold. This was motivated again following changes in #9691 and #9689 where we could not test the changes without actually deprecating or removing rules. --- Follow-up to discussion in https://github.com/astral-sh/ruff/pull/7210 Moves integration tests from using rules that are transitively in nursery / preview groups to dedicated test rules that only exist during development. These rules always raise violations (they do not require specific file behavior). The rules are not available in production or in the documentation. Uses features instead of `cfg(test)` for cross-crate support per https://github.com/rust-lang/cargo/issues/8379
This commit is contained in:
parent
2cc8acb0b7
commit
f18e7d40ac
13 changed files with 541 additions and 196 deletions
|
@ -206,6 +206,9 @@ class CheckOptions(CommandOptions):
|
|||
"check",
|
||||
"--no-cache",
|
||||
"--exit-zero",
|
||||
# Ignore internal test rules
|
||||
"--ignore",
|
||||
"RUF9",
|
||||
f"--{'' if self.preview else 'no-'}preview",
|
||||
]
|
||||
if self.select:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue