From 5b99f33bee0d8362f78cf5e03b7d00f34ee65115 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Oct 2021 18:28:36 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v2.25.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.25.0...v2.29.0) - [github.com/psf/black: 21.7b0 → 21.9b0](https://github.com/psf/black/compare/21.7b0...21.9b0) - [github.com/pre-commit/mirrors-prettier: v2.3.2 → v2.4.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.3.2...v2.4.1) - [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1) - [github.com/pre-commit/mirrors-mypy: v0.910 → v0.910-1](https://github.com/pre-commit/mirrors-mypy/compare/v0.910...v0.910-1) - [github.com/openstack/bashate: 2.0.0 → 2.1.0](https://github.com/openstack/bashate/compare/2.0.0...2.1.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index afc981f0..17686f65 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,11 +33,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v2.25.0 + rev: v2.29.0 hooks: - id: pyupgrade - repo: https://github.com/psf/black - rev: 21.7b0 + rev: 21.9b0 hooks: - id: black args: [--safe, --quiet] @@ -59,12 +59,12 @@ repos: - id: python-no-log-warn - id: rst-backticks - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.3.2 + rev: v2.4.1 hooks: - id: prettier stages: [commit] - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 additional_dependencies: @@ -82,7 +82,7 @@ repos: yesqa, ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.910 + rev: v0.910-1 hooks: - id: mypy # Install additional types to fix new warnings that appeared on v0.910: @@ -109,7 +109,7 @@ repos: args: [--ini, setup.cfg] exclude: tests/ - repo: https://github.com/openstack/bashate - rev: 2.0.0 + rev: 2.1.0 hooks: - id: bashate # https://docs.openstack.org/bashate/latest/man/bashate.html#options From e8323051e57a48ef8c6e79858147efe7382f5efc Mon Sep 17 00:00:00 2001 From: "Augusto W. Andreoli" Date: Mon, 25 Oct 2021 16:43:45 +0200 Subject: [PATCH 2/3] style: remove revisions from flake8 and bashate pre-commit hooks --- docs/examples.rst | 2 -- styles/flake8.toml | 1 - styles/pre-commit/bash.toml | 1 - 3 files changed, 4 deletions(-) diff --git a/docs/examples.rst b/docs/examples.rst index 8c442529..be94bd90 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -126,7 +126,6 @@ Contents of `styles/flake8.toml Date: Mon, 25 Oct 2021 16:53:20 +0200 Subject: [PATCH 3/3] ci: skip flake8 for now, it's failing --- .pre-commit-config.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d9a2e4ba..a040f653 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,8 +4,12 @@ # Thanks to https://github.com/sloria/environs/blob/master/.pre-commit-config.yaml # https://pre-commit.ci/#configuration +# TODO: skip flake8 for now, it's failing on CI: +# https://results.pre-commit.ci/run/github/126496135/1635173038.Vb5hHPmFT6q28HG-of-Dvg +# ImportError: cannot import name 'SortImports' from 'isort' (/pc/clone/BQ54X-ogRzmpWm15sdE8hA/py_env-python3/lib/python3.8/site-packages/isort/__init__.py) +# flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "I00" due to cannot import name 'SortImports' from 'isort' (/pc/clone/BQ54X-ogRzmpWm15sdE8hA/py_env-python3/lib/python3.8/site-packages/isort/__init__.py). ci: - skip: [local-nitpick, generate-docs, pylint] + skip: [local-nitpick, generate-docs, pylint, flake8] repos: - repo: local