Skip to content

Commit d81e38b

Browse files
cclaussgithub-actions
and
github-actions
authored
Update our pre-commit dependencies (TheAlgorithms#4273)
* .pre-commit-config.yaml: mypy directories that pass * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent df893b6 commit d81e38b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.2.0
3+
rev: v3.4.0
44
hooks:
55
- id: check-executables-have-shebangs
66
- id: check-yaml
@@ -13,17 +13,17 @@ repos:
1313
)$
1414
- id: requirements-txt-fixer
1515
- repo: https://github.com/psf/black
16-
rev: stable
16+
rev: 20.8b1
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/PyCQA/isort
20-
rev: 5.5.3
20+
rev: 5.7.0
2121
hooks:
2222
- id: isort
2323
args:
2424
- --profile=black
2525
- repo: https://gitlab.com/pycqa/flake8
26-
rev: 3.8.3
26+
rev: 3.9.0
2727
hooks:
2828
- id: flake8
2929
args:
@@ -38,11 +38,11 @@ repos:
3838
# args:
3939
# - --ignore-missing-imports
4040
- repo: https://github.com/codespell-project/codespell
41-
rev: v1.17.1
41+
rev: v2.0.0
4242
hooks:
4343
- id: codespell
4444
args:
45-
- --ignore-words-list=ans,fo,followings,hist,iff,mater,secant,som,tim
45+
- --ignore-words-list=ans,crate,fo,followings,hist,iff,mater,secant,som,tim
4646
- --skip="./.*,./other/dictionary.txt,./other/words,./project_euler/problem_022/p022_names.txt"
4747
- --quiet-level=2
4848
exclude: |

machine_learning/k_nearest_neighbours.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def classifier(train_data, train_target, classes, point, k=5):
3232
:train_data: Set of points that are classified into two or more classes
3333
:train_target: List of classes in the order of train_data points
3434
:classes: Labels of the classes
35-
:point: The data point that needs to be classifed
35+
:point: The data point that needs to be classified
3636
3737
>>> X_train = [[0, 0], [1, 0], [0, 1], [0.5, 0.5], [3, 3], [2, 3], [3, 2]]
3838
>>> y_train = [0, 0, 0, 0, 1, 1, 1]

maths/polynomial_evaluation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def evaluate_poly(poly: Sequence[float], x: float) -> float:
55
"""Evaluate a polynomial f(x) at specified point x and return the value.
66
77
Arguments:
8-
poly -- the coeffiecients of a polynomial as an iterable in order of
8+
poly -- the coefficients of a polynomial as an iterable in order of
99
ascending degree
1010
x -- the point at which to evaluate the polynomial
1111
@@ -26,7 +26,7 @@ def horner(poly: Sequence[float], x: float) -> float:
2626
https://en.wikipedia.org/wiki/Horner's_method
2727
2828
Arguments:
29-
poly -- the coeffiecients of a polynomial as an iterable in order of
29+
poly -- the coefficients of a polynomial as an iterable in order of
3030
ascending degree
3131
x -- the point at which to evaluate the polynomial
3232

searches/hill_climbing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_neighbors(self):
6060

6161
def __hash__(self):
6262
"""
63-
hash the string represetation of the current search state.
63+
hash the string representation of the current search state.
6464
"""
6565
return hash(str(self))
6666

0 commit comments

Comments
 (0)