mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 04:18:05 +00:00
fix(docs): broken links inside Configuration.md (#3205)
This commit is contained in:
parent
39b9a1637f
commit
1c01b3c934
7 changed files with 63 additions and 38 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue