diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH001_0.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH001_0.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH001_0.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH001_0.py diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH001_1.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH001_1.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH001_1.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH001_1.py diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH002_0.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH002_0.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH002_0.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH002_0.py diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH002_1.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH002_1.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH002_1.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH002_1.py diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH003_0.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH003_0.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH003_0.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH003_0.py diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH003_1.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH003_1.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH003_1.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH003_1.py diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH004_0.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH004_0.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH004_0.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH004_0.py diff --git a/crates/ruff/resources/test/fixtures/pygrep-hooks/PGH005_0.py b/crates/ruff/resources/test/fixtures/pygrep_hooks/PGH005_0.py similarity index 100% rename from crates/ruff/resources/test/fixtures/pygrep-hooks/PGH005_0.py rename to crates/ruff/resources/test/fixtures/pygrep_hooks/PGH005_0.py diff --git a/crates/ruff/src/rules/flake8_builtins/rules/rules.rs b/crates/ruff/src/rules/flake8_builtins/rules/rules.rs deleted file mode 100644 index 8b13789179..0000000000 --- a/crates/ruff/src/rules/flake8_builtins/rules/rules.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/crates/ruff/src/rules/pygrep_hooks/mod.rs b/crates/ruff/src/rules/pygrep_hooks/mod.rs index a19bfe9adb..c128517518 100644 --- a/crates/ruff/src/rules/pygrep_hooks/mod.rs +++ b/crates/ruff/src/rules/pygrep_hooks/mod.rs @@ -23,7 +23,7 @@ mod tests { fn rules(rule_code: Rule, path: &Path) -> Result<()> { let snapshot = format!("{}_{}", rule_code.noqa_code(), path.to_string_lossy()); let diagnostics = test_path( - Path::new("pygrep-hooks").join(path).as_path(), + Path::new("pygrep_hooks").join(path).as_path(), &settings::Settings::for_rule(rule_code), )?; assert_messages!(snapshot, diagnostics); diff --git a/scripts/add_plugin.py b/scripts/add_plugin.py index ce9e143a21..219cfa42ad 100755 --- a/scripts/add_plugin.py +++ b/scripts/add_plugin.py @@ -5,7 +5,7 @@ Example usage: python scripts/add_plugin.py \ flake8-pie \ - --url https://pypi.org/project/flake8-pie/ + --url https://pypi.org/project/flake8-pie/ \ --prefix PIE """ from __future__ import annotations