From 359f50e6dc0c2cdeddc4879d29fda9c401483c89 Mon Sep 17 00:00:00 2001 From: Tom Kuson Date: Mon, 18 Sep 2023 19:27:20 +0100 Subject: [PATCH] Ignore `pass-statement-stub-body` documentation formatting (#7497) ## Summary Fix CI (broken in #7496). The code snippet was formatted as Black would format a stub file, but the CI script doesn't know that (it assumes all code snippets are non-stub files). Easier to ignore. Sorry for breaking CI! ## Test Plan `python scripts/check_docs_formatted.py` --- scripts/check_docs_formatted.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/check_docs_formatted.py b/scripts/check_docs_formatted.py index 2b55a83127..f08723eb5b 100755 --- a/scripts/check_docs_formatted.py +++ b/scripts/check_docs_formatted.py @@ -60,6 +60,7 @@ KNOWN_FORMATTING_VIOLATIONS = [ "one-blank-line-after-class", "over-indentation", "over-indented", + "pass-statement-stub-body", "prohibited-trailing-comma", "shebang-leading-whitespace", "surrounding-whitespace",