From aaab9f1597abc6abe49ddf0c517ff767f30c0a0f Mon Sep 17 00:00:00 2001 From: Peter Attia Date: Fri, 7 Jul 2023 06:35:50 -0700 Subject: [PATCH] Bugfix: Remove version numbers from pypi links (#5579) ## Summary There are two pypi links in the documentation that link to specific version numbers of other packages. Removing these versioned links allows users to immediately view the latest version of the package and maintains consistency with the other links. ## Test Plan N/A --- crates/ruff/src/registry.rs | 4 ++-- crates/ruff/src/rules/flake8_logging_format/mod.rs | 2 +- crates/ruff/src/rules/tryceratops/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruff/src/registry.rs b/crates/ruff/src/registry.rs index 4ff731653b..56e30db0ff 100644 --- a/crates/ruff/src/registry.rs +++ b/crates/ruff/src/registry.rs @@ -112,7 +112,7 @@ pub enum Linter { /// [flake8-import-conventions](https://github.com/joaopalmeiro/flake8-import-conventions) #[prefix = "ICN"] Flake8ImportConventions, - /// [flake8-logging-format](https://pypi.org/project/flake8-logging-format/0.9.0/) + /// [flake8-logging-format](https://pypi.org/project/flake8-logging-format/) #[prefix = "G"] Flake8LoggingFormat, /// [flake8-no-pep420](https://pypi.org/project/flake8-no-pep420/) @@ -181,7 +181,7 @@ pub enum Linter { /// [Pylint](https://pypi.org/project/pylint/) #[prefix = "PL"] Pylint, - /// [tryceratops](https://pypi.org/project/tryceratops/1.1.0/) + /// [tryceratops](https://pypi.org/project/tryceratops/) #[prefix = "TRY"] Tryceratops, /// [flynt](https://pypi.org/project/flynt/) diff --git a/crates/ruff/src/rules/flake8_logging_format/mod.rs b/crates/ruff/src/rules/flake8_logging_format/mod.rs index c76235febe..c334117482 100644 --- a/crates/ruff/src/rules/flake8_logging_format/mod.rs +++ b/crates/ruff/src/rules/flake8_logging_format/mod.rs @@ -1,4 +1,4 @@ -//! Rules from [flake8-logging-format](https://pypi.org/project/flake8-logging-format/0.9.0/). +//! Rules from [flake8-logging-format](https://pypi.org/project/flake8-logging-format/). pub(crate) mod rules; pub(crate) mod violations; diff --git a/crates/ruff/src/rules/tryceratops/mod.rs b/crates/ruff/src/rules/tryceratops/mod.rs index bf88fb825b..cd1075ba86 100644 --- a/crates/ruff/src/rules/tryceratops/mod.rs +++ b/crates/ruff/src/rules/tryceratops/mod.rs @@ -1,4 +1,4 @@ -//! Rules from [tryceratops](https://pypi.org/project/tryceratops/1.1.0/). +//! Rules from [tryceratops](https://pypi.org/project/tryceratops/). pub(crate) mod helpers; pub(crate) mod rules;