mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05:00
feat: flake8-use-pathlib PTH100-124 (#2090)
This commit is contained in:
@@ -116,7 +116,7 @@ pub fn {rule_name_snake}(checker: &mut Checker) {{}}
|
||||
|
||||
if line.strip() == f"// {linter}":
|
||||
indent = get_indent(line)
|
||||
fp.write(f"{indent}{code} => rules::{linter}::rules::{name},")
|
||||
fp.write(f"{indent}{code} => rules::{dir_name(linter)}::rules::{name},")
|
||||
fp.write("\n")
|
||||
has_written = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user