mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 20:10:09 +00:00
parent
b3d31025b1
commit
03018896de
11 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue