[pre-commit.ci] pre-commit autoupdate (#12542)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.2...v0.9.3)
- [github.com/codespell-project/codespell: v2.3.0 → v2.4.0](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.0)

* Update trifid_cipher.py

* Update pyproject.toml

* Update trifid_cipher.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
pre-commit-ci[bot] 2025-01-27 22:05:20 +01:00 committed by GitHub
parent 13e4d3e76c
commit 6c92c5a539
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -16,13 +16,13 @@ repos:
- id: auto-walrus - id: auto-walrus
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.2 rev: v0.9.3
hooks: hooks:
- id: ruff - id: ruff
- id: ruff-format - id: ruff-format
- repo: https://github.com/codespell-project/codespell - repo: https://github.com/codespell-project/codespell
rev: v2.3.0 rev: v2.4.0
hooks: hooks:
- id: codespell - id: codespell
additional_dependencies: additional_dependencies:

View File

@ -88,7 +88,7 @@ def __prepare(
... ...
KeyError: 'Length of alphabet has to be 27.' KeyError: 'Length of alphabet has to be 27.'
Testing with punctuations that are not in the given alphabet Testing with punctuation not in the given alphabet
>>> __prepare('am i a boy?','abCdeFghijkLmnopqrStuVwxYZ+') >>> __prepare('am i a boy?','abCdeFghijkLmnopqrStuVwxYZ+')
Traceback (most recent call last): Traceback (most recent call last):
@ -128,7 +128,7 @@ def encrypt_message(
encrypt_message encrypt_message
=============== ===============
Encrypts a message using the trifid_cipher. Any punctuatuions that Encrypts a message using the trifid_cipher. Any punctuatuion chars that
would be used should be added to the alphabet. would be used should be added to the alphabet.
PARAMETERS PARAMETERS

View File

@ -159,7 +159,7 @@ lint.pylint.max-returns = 8 # default: 6
lint.pylint.max-statements = 88 # default: 50 lint.pylint.max-statements = 88 # default: 50
[tool.codespell] [tool.codespell]
ignore-words-list = "3rt,ans,bitap,crate,damon,fo,followings,hist,iff,kwanza,manuel,mater,secant,som,sur,tim,toi,zar" ignore-words-list = "3rt,abd,aer,ans,bitap,crate,damon,fo,followings,hist,iff,kwanza,manuel,mater,secant,som,sur,tim,toi,zar"
skip = "./.*,*.json,*.lock,ciphers/prehistoric_men.txt,project_euler/problem_022/p022_names.txt,pyproject.toml,strings/dictionary.txt,strings/words.txt" skip = "./.*,*.json,*.lock,ciphers/prehistoric_men.txt,project_euler/problem_022/p022_names.txt,pyproject.toml,strings/dictionary.txt,strings/words.txt"
[tool.pytest.ini_options] [tool.pytest.ini_options]