Skip to content

Commit 50f4648

Browse files
committed
Merge branch 'master' of https://github.com/TheAlgorithms/Python into feat-macaulay-duration
2 parents f6d7103 + 02680c9 commit 50f4648

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ repos:
1919
- id: auto-walrus
2020

2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.15.4
22+
rev: v0.15.9
2323
hooks:
2424
- id: ruff-check
2525
- id: ruff-format
2626

2727
- repo: https://github.com/codespell-project/codespell
28-
rev: v2.4.1
28+
rev: v2.4.2
2929
hooks:
3030
- id: codespell
3131
additional_dependencies:
3232
- tomli
3333

3434
- repo: https://github.com/tox-dev/pyproject-fmt
35-
rev: v2.16.2
35+
rev: v2.21.0
3636
hooks:
3737
- id: pyproject-fmt
3838

hashes/hamming_code.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def emitter_converter(size_par, data):
118118
data_ord.append(None)
119119

120120
# Calculates parity
121-
qtd_bp = 0 # parity bit counter
122121
for bp in range(1, size_par + 1):
123122
# Bit counter one for a given parity
124123
cont_bo = 0
@@ -133,8 +132,6 @@ def emitter_converter(size_par, data):
133132
cont_bo += 1
134133
parity.append(cont_bo % 2)
135134

136-
qtd_bp += 1
137-
138135
# Mount the message
139136
cont_bp = 0 # parity bit counter
140137
for x in range(size_par + len(data)):
@@ -208,7 +205,6 @@ def receptor_converter(size_par, data):
208205
data_ord.append(None)
209206

210207
# Calculates parity
211-
qtd_bp = 0 # parity bit counter
212208
for bp in range(1, size_par + 1):
213209
# Bit counter one for a certain parity
214210
cont_bo = 0
@@ -222,8 +218,6 @@ def receptor_converter(size_par, data):
222218
cont_bo += 1
223219
parity.append(str(cont_bo % 2))
224220

225-
qtd_bp += 1
226-
227221
# Mount the message
228222
cont_bp = 0 # Parity bit counter
229223
for x in range(size_par + len(data_output)):

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ skip = """\
165165
nary.txt,strings/words.txt\
166166
"""
167167

168+
[tool.mypy]
169+
python_version = "3.14"
170+
168171
[tool.pytest]
169172
ini_options.markers = [
170173
"mat_ops: mark a test as utilizing matrix operations.",
@@ -182,9 +185,6 @@ report.omit = [
182185
]
183186
report.sort = "Cover"
184187

185-
[tool.mypy]
186-
python_version = "3.14"
187-
188188
[tool.sphinx-pyproject]
189189
copyright = "2014, TheAlgorithms"
190190
autoapi_dirs = [

0 commit comments

Comments
 (0)