From 7d6fa0fb70d290d6ac699068deaea01dfe14d5a5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:08:14 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#4041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-prettier: v3.0.2 → v3.0.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.2...v3.0.3) - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.285 → v0.0.287](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.285...v0.0.287) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sorin Sbarnea --- .pre-commit-config.yaml | 14 +++++++------- src/molecule/command/matrix.py | 2 +- src/molecule/interpolation.py | 2 +- src/molecule/util.py | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3249db9af1..2a7f7fdeb5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/mirrors-prettier # keep it before yamllint - rev: "v3.0.2" + rev: "v3.0.3" hooks: - id: prettier # Temporary excludes so we can gradually normalize the formatting @@ -16,16 +16,16 @@ repos: - prettier - prettier-plugin-toml - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/pre-commit-hooks.git - rev: v4.4.0 + rev: v4.5.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -44,12 +44,12 @@ repos: types: [file, yaml] entry: yamllint --strict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.285" + rev: "v0.0.292" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.0 hooks: - id: mypy # empty args needed in order to match mypy cli behavior @@ -74,7 +74,7 @@ repos: - types-setuptools - wcmatch - repo: https://github.com/pycqa/pylint - rev: v3.0.0a7 + rev: v3.0.1 hooks: - id: pylint args: diff --git a/src/molecule/command/matrix.py b/src/molecule/command/matrix.py index 21b2be75ae..5aa7247bd1 100644 --- a/src/molecule/command/matrix.py +++ b/src/molecule/command/matrix.py @@ -30,7 +30,7 @@ class Matrix(base.Base): - """Matric Command Class. + """Matrix Command Class. .. program:: molecule matrix subcommand diff --git a/src/molecule/interpolation.py b/src/molecule/interpolation.py index a09f86814b..8f5b198425 100644 --- a/src/molecule/interpolation.py +++ b/src/molecule/interpolation.py @@ -14,7 +14,7 @@ # Taken from Docker Compose: # https://github.com/docker/compose/blob/master/compose/config/interpolation.py -"""Iterpolation Module.""" +"""Interpolation Module.""" import string from collections.abc import MutableMapping diff --git a/src/molecule/util.py b/src/molecule/util.py index 943ea0a227..4012a926a0 100644 --- a/src/molecule/util.py +++ b/src/molecule/util.py @@ -255,7 +255,7 @@ def verbose_flag(options): """Return computed verbosity flag.""" verbose = "v" verbose_flag = [] - for _i in range(0, 3): + for _i in range(3): if options.get(verbose): verbose_flag = [f"-{verbose}"] del options[verbose]