This is an automated email from the ASF dual-hosted git repository. kamilbregula pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push: new 9265ba3 Update pre-commit hooks (#20623) 9265ba3 is described below commit 9265ba34b183361058059e623adfd7cb32a467f8 Author: Kamil BreguĊa <mik-...@users.noreply.github.com> AuthorDate: Sun Jan 2 12:54:52 2022 +0100 Update pre-commit hooks (#20623) --- .pre-commit-config.yaml | 18 +++++++++--------- airflow/kubernetes/kube_client.py | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4206f65..23d85fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -143,7 +143,7 @@ repos: files: \.mermaid$ exclude: ^airflow/_vendor/ - repo: https://github.com/thlorenz/doctoc.git - rev: v2.0.1 + rev: v2.1.0 hooks: - id: doctoc name: Add TOC for md files @@ -154,19 +154,19 @@ repos: - "--maxlevel" - "2" - repo: https://github.com/psf/black - rev: 21.9b0 + rev: 21.12b0 hooks: - id: black args: [--config=./pyproject.toml] exclude: ^airflow/_vendor/ - repo: https://github.com/asottile/blacken-docs - rev: v1.11.0 + rev: v1.12.0 hooks: - id: blacken-docs alias: black - additional_dependencies: [black==21.9b0] + additional_dependencies: [black==21.12b0] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.1.0 hooks: - id: check-merge-conflict - id: debug-statements @@ -196,7 +196,7 @@ repos: files: ^chart/values\.schema\.json$|^chart/values_schema\.schema\.json$ pass_filenames: true - repo: https://github.com/asottile/pyupgrade - rev: v2.29.1 + rev: v2.31.0 hooks: - id: pyupgrade args: ["--py37-plus"] @@ -216,8 +216,8 @@ repos: entry: yamllint -c yamllint-config.yml --strict types: [yaml] exclude: ^.*init_git_sync\.template\.yaml$|^.*airflow\.template\.yaml$|^chart/(?:templates|files)/.*\.yaml$|openapi/.*\.yaml|pre-commit-config|^airflow/_vendor/ - - repo: https://github.com/timothycrosley/isort - rev: 5.9.3 + - repo: https://github.com/PyCQA/isort + rev: 5.10.1 hooks: - id: isort name: Run isort to sort imports in Python files @@ -245,7 +245,7 @@ repos: ^airflow/_vendor/ additional_dependencies: ['toml'] - repo: https://github.com/asottile/yesqa - rev: v1.2.3 + rev: v1.3.0 hooks: - id: yesqa exclude: | diff --git a/airflow/kubernetes/kube_client.py b/airflow/kubernetes/kube_client.py index 1c20bd3..36cfc8d 100644 --- a/airflow/kubernetes/kube_client.py +++ b/airflow/kubernetes/kube_client.py @@ -63,7 +63,6 @@ try: configuration.verify_ssl = False Configuration.set_default(configuration) - except ImportError as e: # We need an exception class to be able to use it in ``except`` elsewhere # in the code base