Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#23)
Browse files Browse the repository at this point in the history
updates:
- [github.com/ambv/black: 24.4.0 → 24.4.2](psf/black@24.4.0...24.4.2)
- [github.com/PyCQA/flake8: 7.0.0 → 7.1.0](PyCQA/flake8@7.0.0...7.1.0)
- [github.com/asottile/pyupgrade: v3.15.2 → v3.16.0](asottile/pyupgrade@v3.15.2...v3.16.0)

---------

Co-authored-by: Pierre Sassoulas <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Pierre-Sassoulas authored Jun 18, 2024
1 parent 44b861b commit e7d6565
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pycrobit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7d6565

Please sign in to comment.