[pycodestyle] Fix: Don't autofix if the first line ends in a question mark? (D400) (#13399)

Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
yahayaohinoyi 2024-09-20 12:05:26 +01:00 committed by GitHub
parent 531ebf6dff
commit 03f3a4e855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 170 additions and 23 deletions

View file

@ -29,7 +29,9 @@ mod tests {
#[test_case(Rule::UndocumentedParam, Path::new("sections.py"))]
#[test_case(Rule::EndsInPeriod, Path::new("D.py"))]
#[test_case(Rule::EndsInPeriod, Path::new("D400.py"))]
#[test_case(Rule::EndsInPeriod, Path::new("D400_415.py"))]
#[test_case(Rule::EndsInPunctuation, Path::new("D.py"))]
#[test_case(Rule::EndsInPunctuation, Path::new("D400_415.py"))]
#[test_case(Rule::FirstLineCapitalized, Path::new("D.py"))]
#[test_case(Rule::FirstLineCapitalized, Path::new("D403.py"))]
#[test_case(Rule::FitsOnOneLine, Path::new("D.py"))]