mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00
feat: flake8-use-pathlib PTH100-124 (#2090)
This commit is contained in:
parent
6a6a792562
commit
11f06055a0
22 changed files with 1748 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue