Skip to content

Commit

Permalink
Update pre-commit hooks (apache#20623)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored Jan 2, 2022
1 parent d823cf7 commit 9265ba3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"]
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
1 change: 0 additions & 1 deletion airflow/kubernetes/kube_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def _disable_verify_ssl() -> None:
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
Expand Down

0 comments on commit 9265ba3

Please sign in to comment.