зеркало из https://github.com/mozilla/bugbug.git
Update pre-commit repositories
This commit is contained in:
Родитель
c45dd7c3ec
Коммит
f301071d6e
|
@ -4,11 +4,11 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: seed-isort-config
|
- id: seed-isort-config
|
||||||
- repo: https://github.com/timothycrosley/isort
|
- repo: https://github.com/timothycrosley/isort
|
||||||
rev: 5.7.0
|
rev: 5.8.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/ambv/black
|
||||||
rev: stable
|
rev: 20.8b1
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
@ -17,7 +17,7 @@ repos:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
exclude: ^tests/fixtures/
|
exclude: ^tests/fixtures/
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.8.4
|
rev: 3.9.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
|
@ -60,7 +60,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: yesqa
|
- id: yesqa
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v0.790
|
rev: v0.812
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy-bugbug
|
name: mypy-bugbug
|
||||||
|
|
|
@ -303,7 +303,7 @@ def get_result(job: JobInfo) -> Optional[Any]:
|
||||||
result = redis_conn.get(job.result_key)
|
result = redis_conn.get(job.result_key)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
LOGGER.debug(f"Found {result}")
|
LOGGER.debug(f"Found {result!r}")
|
||||||
try:
|
try:
|
||||||
result = dctx.decompress(result)
|
result = dctx.decompress(result)
|
||||||
except zstandard.ZstdError:
|
except zstandard.ZstdError:
|
||||||
|
@ -312,6 +312,7 @@ def get_result(job: JobInfo) -> Optional[Any]:
|
||||||
# since 47114f4f47db6b73214cf946377be8da945d34b5.
|
# since 47114f4f47db6b73214cf946377be8da945d34b5.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
assert result is not None # mypy thinks it could be None
|
||||||
return orjson.loads(result)
|
return orjson.loads(result)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
Загрузка…
Ссылка в новой задаче