From 85304d4672a9ed24a16f7f5b2abaa34148ab86f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mochol=C3=AD?= Date: Wed, 22 Dec 2021 18:09:27 +0100 Subject: [PATCH] Update pre-commit hook versions (#11202) --- .pre-commit-config.yaml | 14 +++++++------- tests/models/test_hparams.py | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 68bd201eb0..f30124d46d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,7 +46,7 @@ repos: - id: detect-private-key - repo: https://github.com/asottile/pyupgrade - rev: v2.29.0 + rev: v2.29.1 hooks: - id: pyupgrade args: [--py37-plus] @@ -59,32 +59,32 @@ repos: args: [--in-place, --wrap-summaries=115, --wrap-descriptions=120] - repo: https://github.com/asottile/yesqa - rev: v1.2.3 + rev: v1.3.0 hooks: - id: yesqa name: Unused noqa - repo: https://github.com/PyCQA/isort - rev: 5.9.3 + rev: 5.10.1 hooks: - id: isort name: Format imports - repo: https://github.com/psf/black - rev: 21.9b0 + rev: 21.12b0 hooks: - id: black name: Format code - repo: https://github.com/asottile/blacken-docs - rev: v1.11.0 + rev: v1.12.0 hooks: - id: blacken-docs args: [--line-length=120] additional_dependencies: [black==21.7b0] - repo: https://github.com/executablebooks/mdformat - rev: 0.7.10 + rev: 0.7.11 hooks: - id: mdformat additional_dependencies: @@ -94,7 +94,7 @@ repos: exclude: CHANGELOG.md - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 name: Check PEP8 diff --git a/tests/models/test_hparams.py b/tests/models/test_hparams.py index e73f6b9e99..7fc213df81 100644 --- a/tests/models/test_hparams.py +++ b/tests/models/test_hparams.py @@ -286,7 +286,6 @@ if _OMEGACONF_AVAILABLE: super().__init__(*args, **kwargs) self.save_hyperparameters() - else: class DictConfSubClassBoringModel: