Skip to content

Commit

Permalink
Fix diagnostics variable name in add_plugin.py script (astral-sh#…
Browse files Browse the repository at this point in the history
…5317)

## Summary

Fix a variable name in the `add_plugin.py` script.

## Test Plan

I don't think there are any tests for the scripts, other than manual
confirmation
  • Loading branch information
edgarrmondragon authored Jun 22, 2023
1 parent 8bc7378 commit e0e1d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def main(*, plugin: str, url: str, prefix_code: str) -> None:
fn rules(rule_code: Rule, path: &Path) -> Result<()> {
let snapshot = format!("{}_{}", rule_code.as_ref(), path.to_string_lossy());
let messages = test_path(
let diagnostics = test_path(
Path::new("%s").join(path).as_path(),
&settings::Settings::for_rule(rule_code),
)?;
Expand Down

0 comments on commit e0e1d13

Please sign in to comment.