зеркало из https://github.com/mozilla/treeherder.git
update pre-commit tools to latest (#7573)
This commit is contained in:
Родитель
79fa56153e
Коммит
917e52dc34
|
@ -1,23 +1,24 @@
|
|||
repos:
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 3.9.0
|
||||
rev: 5.0.4
|
||||
hooks:
|
||||
- id: flake8
|
||||
args: [--append-config=tox.ini]
|
||||
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||||
rev: v0.7.1.1
|
||||
rev: v0.8.0.4
|
||||
hooks:
|
||||
- id: shellcheck
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v2.1.2
|
||||
rev: v2.2.1
|
||||
hooks:
|
||||
- id: prettier
|
||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||
rev: v0.23.2
|
||||
rev: v0.32.2
|
||||
hooks:
|
||||
- id: markdownlint
|
||||
args: [--fix]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.3.0
|
||||
rev: 22.10.0
|
||||
hooks:
|
||||
- id: black
|
||||
language_version: python3.9
|
||||
|
|
|
@ -119,7 +119,9 @@ const withValidation = ({ requiredParams }, verifyRevisions = true) => (
|
|||
};
|
||||
}
|
||||
if (!data.results.length) {
|
||||
return { errorMessages: [`No results found for revision ${revision}`] };
|
||||
return {
|
||||
errorMessages: [`No results found for revision ${revision}`],
|
||||
};
|
||||
}
|
||||
|
||||
return { [resultSetName]: data.results[0] };
|
||||
|
|
Загрузка…
Ссылка в новой задаче