mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
[pycodestyle
] Implement redundant-backslash
(E502
) (#10292)
## Summary Implements the [redundant-backslash](https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes) rule (E502) from pycodestyle. ## Test Plan New fixture has been added Part of #2402
This commit is contained in:
parent
fc7139d9a5
commit
c746912b9e
12 changed files with 475 additions and 4 deletions
|
@ -380,7 +380,7 @@ per-file-ignores = { "__init__.py" = ["F401"] }
|
|||
assert!(result.is_err());
|
||||
let result = PatternPrefixPair::from_str("**/bar:E501");
|
||||
assert!(result.is_ok());
|
||||
let result = PatternPrefixPair::from_str("bar:E502");
|
||||
let result = PatternPrefixPair::from_str("bar:E503");
|
||||
assert!(result.is_err());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue