Update linters PyPI links to latest version (#2062)

This commit is contained in:
alm 2023-01-22 20:10:22 +02:00 committed by GitHub
parent 75e16c0ce5
commit e11cf1bf65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 72 additions and 72 deletions

View file

@ -5,7 +5,7 @@ Example usage:
python scripts/add_plugin.py \
flake8-pie \
--url https://pypi.org/project/flake8-pie/0.16.0/
--url https://pypi.org/project/flake8-pie/
--prefix PIE
"""
@ -25,7 +25,7 @@ def main(*, plugin: str, url: str, prefix_code: str) -> None:
# Create the Plugin rules module.
plugin_dir = ROOT_DIR / "src/rules" / dir_name(plugin)
plugin_dir.mkdir(exist_ok=True)
with (plugin_dir / "mod.rs").open("w+") as fp:
fp.write(f"//! Rules from [{plugin}]({url}).\n")
fp.write("pub(crate) mod rules;\n")
@ -98,7 +98,7 @@ if __name__ == "__main__":
description="Generate boilerplate for a new Flake8 plugin.",
epilog=(
"Example usage: python scripts/add_plugin.py flake8-pie "
"--url https://pypi.org/project/flake8-pie/0.16.0/"
"--url https://pypi.org/project/flake8-pie/"
),
)
parser.add_argument(