mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-03 05:03:33 +00:00
Put flake8-logging next to the other flake8 plugins in registry (#10587)
## Summary This is just a nitpicky improvement, but I thought it'd be a good opportunity to look at the ruff source. > The rules list in the documentation is generated using the registry order. Currently, flake8-logging is separated from the rest of the flake8 plugins. This patch puts it next to them. https://docs.astral.sh/ruff/rules/ If it makes sense, we could alternatively just sort the linters in https://github.com/astral-sh/ruff/blob/main/crates/ruff_dev/src/generate_rules_table.rs. Signed-off-by: Filipe Laíns <lains@riseup.net>
This commit is contained in:
parent
4950ca4142
commit
960e47423c
1 changed files with 3 additions and 3 deletions
|
|
@ -115,6 +115,9 @@ pub enum Linter {
|
|||
/// [flake8-import-conventions](https://github.com/joaopalmeiro/flake8-import-conventions)
|
||||
#[prefix = "ICN"]
|
||||
Flake8ImportConventions,
|
||||
/// [flake8-logging](https://pypi.org/project/flake8-logging/)
|
||||
#[prefix = "LOG"]
|
||||
Flake8Logging,
|
||||
/// [flake8-logging-format](https://pypi.org/project/flake8-logging-format/)
|
||||
#[prefix = "G"]
|
||||
Flake8LoggingFormat,
|
||||
|
|
@ -202,9 +205,6 @@ pub enum Linter {
|
|||
/// [refurb](https://pypi.org/project/refurb/)
|
||||
#[prefix = "FURB"]
|
||||
Refurb,
|
||||
/// [flake8-logging](https://pypi.org/project/flake8-logging/)
|
||||
#[prefix = "LOG"]
|
||||
Flake8Logging,
|
||||
/// Ruff-specific rules
|
||||
#[prefix = "RUF"]
|
||||
Ruff,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue