feat: flake8-use-pathlib PTH100-124 (#2090)

This commit is contained in:
Simon Brugman 2023-01-22 21:17:25 +01:00 committed by GitHub
parent 6a6a792562
commit 11f06055a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 1748 additions and 3 deletions

View file

@ -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