diff options
author | DetachHead <57028336+DetachHead@users.noreply.github.com> | 2022-08-19 19:12:52 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 11:12:52 +0200 |
commit | 8a95cffca3848945beb25cc60f66be22d1f6c77a (patch) | |
tree | 653ca914d97f2b415a3839a1a69764442cd9f18a /script | |
parent | 82d55aee4ae3718b77fbec70e5d7d80c70adfa27 (diff) | |
download | pylint-git-8a95cffca3848945beb25cc60f66be22d1f6c77a.tar.gz |
fix `undefined-loop-variable` with `break` and `continue` statements in `else` blocks (#7318)
Also add better regex explanation for news fragments following hard to fix issue with it.
Co-authored-by: detachhead <detachhead@users.noreply.github.com>
Diffstat (limited to 'script')
-rw-r--r-- | script/check_newsfragments.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/check_newsfragments.py b/script/check_newsfragments.py index cb5544f0b..577b4ba88 100644 --- a/script/check_newsfragments.py +++ b/script/check_newsfragments.py @@ -64,12 +64,14 @@ def check_file(file: Path, verbose: bool) -> bool: The standard format is: -<one or more line of text> +<one or more line of text ending with a '.'> <one blank line> <issue reference> #<issuenumber> Where <issue reference> can be one of: {', '.join(VALID_ISSUES_KEYWORDS)} +The regex used is '{VALID_CHANGELOG_COMPILED_PATTERN}'. + For example: ``pylint.x.y`` is now a private API. |