Skip to content

Commit 0c7c5fa

Browse files
pre-commit-ci[bot]github-actionscclauss
authored
[pre-commit.ci] pre-commit autoupdate (TheAlgorithms#7387)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.0.0 → v3.1.0](asottile/pyupgrade@v3.0.0...v3.1.0) - [github.com/codespell-project/codespell: v2.2.1 → v2.2.2](codespell-project/codespell@v2.2.1...v2.2.2) * updating DIRECTORY.md * Fix typo discovered by codespell * Fix typo discovered by codespell * Update .pre-commit-config.yaml * Update .pre-commit-config.yaml * Update .pre-commit-config.yaml Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
1 parent a34b756 commit 0c7c5fa

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- --profile=black
2727

2828
- repo: https://github.com/asottile/pyupgrade
29-
rev: v3.0.0
29+
rev: v3.1.0
3030
hooks:
3131
- id: pyupgrade
3232
args:
@@ -55,14 +55,14 @@ repos:
5555
additional_dependencies: [types-requests]
5656

5757
- repo: https://github.com/codespell-project/codespell
58-
rev: v2.2.1
58+
rev: v2.2.2
5959
hooks:
6060
- id: codespell
6161
args:
6262
- --ignore-words-list=ans,crate,damon,fo,followings,hist,iff,mater,secant,som,sur,tim,zar
63-
- --skip="./.*,./strings/dictionary.txt,./strings/words.txt,./project_euler/problem_022/p022_names.txt"
6463
exclude: |
6564
(?x)^(
65+
ciphers/prehistoric_men.txt |
6666
strings/dictionary.txt |
6767
strings/words.txt |
6868
project_euler/problem_022/p022_names.txt

DIRECTORY.md

+2
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@
642642
* [Tower Of Hanoi](other/tower_of_hanoi.py)
643643

644644
## Physics
645+
* [Casimir Effect](physics/casimir_effect.py)
645646
* [Horizontal Projectile Motion](physics/horizontal_projectile_motion.py)
646647
* [Lorentz Transformation Four Vector](physics/lorentz_transformation_four_vector.py)
647648
* [N Body Simulation](physics/n_body_simulation.py)
@@ -928,6 +929,7 @@
928929
* [Deutsch Jozsa](quantum/deutsch_jozsa.py)
929930
* [Half Adder](quantum/half_adder.py)
930931
* [Not Gate](quantum/not_gate.py)
932+
* [Q Full Adder](quantum/q_full_adder.py)
931933
* [Quantum Entanglement](quantum/quantum_entanglement.py)
932934
* [Ripple Adder Classic](quantum/ripple_adder_classic.py)
933935
* [Single Qubit Measure](quantum/single_qubit_measure.py)

machine_learning/local_weighted_learning/local_weighted_learning.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This training phase is possible when data points are linear, but there again com
2929
So, here comes the role of non-parametric algorithm which doesn't compute predictions based on fixed set of params. Rather parameters $\theta$ are computed individually for each query point/data point x.
3030
<br />
3131
<br />
32-
While Computing $\theta$ , a higher "preferance" is given to points in the vicinity of x than points farther from x.
32+
While Computing $\theta$ , a higher preference is given to points in the vicinity of x than points farther from x.
3333

3434
Cost Function J($\theta$) = $\sum_{i=1}^m$ $w^i$ (($\theta$)$^T$ $x^i$ - $y^i$)$^2$
3535

maths/is_square_free.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def is_square_free(factors: list[int]) -> bool:
1515
False
1616
1717
These are wrong but should return some value
18-
it simply checks for repition in the numbers.
18+
it simply checks for repetition in the numbers.
1919
>>> is_square_free([1, 3, 4, 'sd', 0.0])
2020
True
2121

0 commit comments

Comments
 (0)