Implement D400 (DocstringEndsInNonPeriod) (#396)

This commit is contained in:
Charlie Marsh 2022-10-10 15:35:23 -04:00 committed by GitHub
parent 8b66bbdc9b
commit 30877127bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 115 additions and 4 deletions

View file

@ -978,6 +978,18 @@ mod tests {
Ok(())
}
#[test]
fn d400() -> Result<()> {
let mut checks = check_path(
Path::new("./resources/test/fixtures/D400.py"),
&settings::Settings::for_rule(CheckCode::D400),
&fixer::Mode::Generate,
)?;
checks.sort_by_key(|check| check.location);
insta::assert_yaml_snapshot!(checks);
Ok(())
}
#[test]
fn d419() -> Result<()> {
let mut checks = check_path(