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 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 - """ - ) + """)