mirror of https://github.com/astral-sh/ruff
parent
b3d31025b1
commit
03018896de
|
|
@ -1 +0,0 @@
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ mod tests {
|
||||||
fn rules(rule_code: Rule, path: &Path) -> Result<()> {
|
fn rules(rule_code: Rule, path: &Path) -> Result<()> {
|
||||||
let snapshot = format!("{}_{}", rule_code.noqa_code(), path.to_string_lossy());
|
let snapshot = format!("{}_{}", rule_code.noqa_code(), path.to_string_lossy());
|
||||||
let diagnostics = test_path(
|
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),
|
&settings::Settings::for_rule(rule_code),
|
||||||
)?;
|
)?;
|
||||||
assert_messages!(snapshot, diagnostics);
|
assert_messages!(snapshot, diagnostics);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Example usage:
|
||||||
|
|
||||||
python scripts/add_plugin.py \
|
python scripts/add_plugin.py \
|
||||||
flake8-pie \
|
flake8-pie \
|
||||||
--url https://pypi.org/project/flake8-pie/
|
--url https://pypi.org/project/flake8-pie/ \
|
||||||
--prefix PIE
|
--prefix PIE
|
||||||
"""
|
"""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue