fix(docs): broken links inside Configuration.md (#3205)

This commit is contained in:
Carlos Gonçalves 2023-02-24 18:55:33 +00:00 committed by GitHub
parent 39b9a1637f
commit 1c01b3c934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 63 additions and 38 deletions

View file

@ -46,7 +46,8 @@ def main(*, name: str, code: str, linter: str) -> None:
if line.strip() == "fn rules(rule_code: Rule, path: &Path) -> Result<()> {":
indent = get_indent(line)
fp.write(
f'{indent}#[test_case(Rule::{name}, Path::new("{code}.py"); "{code}")]',
f'{indent}#[test_case(Rule::{name}, Path::new("{code}.py"); '
f'"{code}")]',
)
fp.write("\n")
@ -150,7 +151,10 @@ pub fn {rule_name_snake}(checker: &mut Checker) {{}}
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Generate boilerplate for a new rule.",
epilog="python scripts/add_rule.py --name PreferListBuiltin --code PIE807 --linter flake8-pie",
epilog=(
"python scripts/add_rule.py "
"--name PreferListBuiltin --code PIE807 --linter flake8-pie"
),
)
parser.add_argument(
"--name",