From 469e9faa9727966ef64be760b696a169d5cbd952 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 22:27:41 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - [github.com/pycqa/isort: 5.13.2 → 7.0.0](https://github.com/pycqa/isort/compare/5.13.2...7.0.0) - [github.com/ambv/black: 24.4.2 → 26.1.0](https://github.com/ambv/black/compare/24.4.2...26.1.0) - [github.com/PyCQA/flake8: 7.1.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.1.0...7.3.0) - [github.com/asottile/pyupgrade: v3.16.0 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.16.0...v3.21.2) - [github.com/asottile/setup-cfg-fmt: v2.5.0 → v3.2.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.5.0...v3.2.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 09dfd20..c07e257 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: repos: - repo: 'https://github.com/pre-commit/pre-commit-hooks' - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -24,28 +24,28 @@ repos: - --remove-duplicate-keys - --remove-unused-variables - repo: 'https://github.com/pycqa/isort' - rev: 5.13.2 + rev: 7.0.0 hooks: - id: isort - repo: 'https://github.com/ambv/black' - rev: 24.4.2 + rev: 26.1.0 hooks: - id: black - repo: 'https://github.com/PyCQA/flake8' - rev: 7.1.0 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: - flake8-black>=0.1.1 language_version: python3 - repo: 'https://github.com/asottile/pyupgrade' - rev: v3.16.0 + rev: v3.21.2 hooks: - id: pyupgrade args: - '--py36-plus' - repo: 'https://github.com/asottile/setup-cfg-fmt' - rev: v2.5.0 + rev: v3.2.0 hooks: - id: setup-cfg-fmt - repo: local From 49b3f495bb5d0f89acfb647a2c1b89238979824d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 22:27:49 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.cfg | 1 - tests/pycrobit_string_test.py | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/setup.cfg b/setup.cfg index 1646f17..3cfec7d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,6 @@ license = MIT license_files = LICENSE classifiers = Intended Audience :: Developers - License :: OSI Approved :: MIT License Operating System :: OS Independent Programming Language :: Python :: 3 diff --git a/tests/pycrobit_string_test.py b/tests/pycrobit_string_test.py index e7c4fac..8cefdd0 100644 --- a/tests/pycrobit_string_test.py +++ b/tests/pycrobit_string_test.py @@ -4,22 +4,18 @@ def test_pycrobit_string(): - validate_pycrobit_str( - """ + validate_pycrobit_str(""" 12345 12345 12345 12345 12345 -""" - ) +""") with pytest.raises(ValueError, match="expected 5 characters on line n°3"): - validate_pycrobit_str( - """ + validate_pycrobit_str(""" 12345 12345 1234 12345 12345 - """ - ) + """)