Port over some fixes from #3747 (#5940)

This commit is contained in:
Charlie Marsh 2023-07-20 23:55:01 -04:00 committed by GitHub
parent b3d31025b1
commit 03018896de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 2 additions and 3 deletions

View file

@ -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);

View file

@ -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