зеркало из https://github.com/mozilla/bugbug.git
Add a pre-commit hook to remove unneeded noqas
This commit is contained in:
Родитель
9aff04a38a
Коммит
acb0f5fd54
|
@ -42,6 +42,10 @@ repos:
|
|||
rev: v0.0.3
|
||||
hooks:
|
||||
- id: taskcluster_yml
|
||||
- repo: https://github.com/asottile/yesqa
|
||||
rev: v0.0.11
|
||||
hooks:
|
||||
- id: yesqa
|
||||
- repo: meta
|
||||
hooks:
|
||||
- id: check-useless-excludes
|
||||
|
|
|
@ -52,7 +52,7 @@ LIST = r"[;,\/\\]\s*"
|
|||
IRC_NICK = r"[a-zA-Z0-9\-\_]+"
|
||||
|
||||
# fmt: off
|
||||
REVIEWERS_RE = re.compile( # noqa: E131
|
||||
REVIEWERS_RE = re.compile(
|
||||
r"([\s\(\.\[;,])" # before "r" delimiter
|
||||
+ r"(" + SPECIFIER + r")" # flag
|
||||
+ r"(" # capture all reviewers
|
||||
|
|
Загрузка…
Ссылка в новой задаче