Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 4 additions & 8 deletions tests/pycrobit_string_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
)
""")
Loading