From e7d6565b13b396d8cb4126f3ad34bb57aee65c36 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:39:40 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/ambv/black: 24.4.0 → 24.4.2](https://github.com/ambv/black/compare/24.4.0...24.4.2) - [github.com/PyCQA/flake8: 7.0.0 → 7.1.0](https://github.com/PyCQA/flake8/compare/7.0.0...7.1.0) - [github.com/asottile/pyupgrade: v3.15.2 → v3.16.0](https://github.com/asottile/pyupgrade/compare/v3.15.2...v3.16.0) --------- Co-authored-by: Pierre Sassoulas --- .pre-commit-config.yaml | 6 +++--- pycrobit.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 940794c..09dfd20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,18 +28,18 @@ repos: hooks: - id: isort - repo: 'https://github.com/ambv/black' - rev: 24.4.0 + rev: 24.4.2 hooks: - id: black - repo: 'https://github.com/PyCQA/flake8' - rev: 7.0.0 + rev: 7.1.0 hooks: - id: flake8 additional_dependencies: - flake8-black>=0.1.1 language_version: python3 - repo: 'https://github.com/asottile/pyupgrade' - rev: v3.15.2 + rev: v3.16.0 hooks: - id: pyupgrade args: diff --git a/pycrobit.py b/pycrobit.py index f1d32a1..b7a2c37 100644 --- a/pycrobit.py +++ b/pycrobit.py @@ -48,7 +48,7 @@ def validate_pycrobit_str(pycrobit_string: str) -> str: stripped_line = line.strip(" ") if len(stripped_line) != 5: raise ValueError( - f"We expected 5 characters on line n°{i+1} and got " + f"We expected 5 characters on line n°{i + 1} and got " f"{len(stripped_line)} ({stripped_line})" ) return pycrobit_string