Update pre-commit repositories

This commit is contained in:
Marco Castelluccio 2021-04-02 20:06:34 +02:00
Родитель c45dd7c3ec
Коммит f301071d6e
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -4,11 +4,11 @@ repos:
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 5.7.0
rev: 5.8.0
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: stable
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
@ -17,7 +17,7 @@ repos:
- id: prettier
exclude: ^tests/fixtures/
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
rev: 3.9.0
hooks:
- id: flake8
additional_dependencies:
@ -60,7 +60,7 @@ repos:
hooks:
- id: yesqa
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
rev: v0.812
hooks:
- id: mypy
name: mypy-bugbug

Просмотреть файл

@ -303,7 +303,7 @@ def get_result(job: JobInfo) -> Optional[Any]:
result = redis_conn.get(job.result_key)
if result:
LOGGER.debug(f"Found {result}")
LOGGER.debug(f"Found {result!r}")
try:
result = dctx.decompress(result)
except zstandard.ZstdError:
@ -312,6 +312,7 @@ def get_result(job: JobInfo) -> Optional[Any]:
# since 47114f4f47db6b73214cf946377be8da945d34b5.
pass
assert result is not None # mypy thinks it could be None
return orjson.loads(result)
return None