Skip to content

Commit 3cea941

Browse files
Ombuchacclausspre-commit-ci[bot]
authored
Fix a few typos (TheAlgorithms#13346)
* Fix typo in spheres intersection print statement * Fix typo in CONTRIBUTING.md * Improve comments in comb_sort.py * pyproject.toml: tool.ruff.target-version = "py314" * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix comment formatting in lint.ignore section --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 85e6730 commit 3cea941

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ We want your work to be readable by others; therefore, we encourage you to note
9999
ruff check
100100
```
101101

102-
- Original code submission require docstrings or comments to describe your work.
102+
- Original code submissions require docstrings or comments to describe your work.
103103

104104
- More on docstrings and comments:
105105

maths/volume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def main():
555555
print(f"Torus: {vol_torus(2, 2) = }") # ~= 157.9
556556
print(f"Conical Frustum: {vol_conical_frustum(2, 2, 4) = }") # ~= 58.6
557557
print(f"Spherical cap: {vol_spherical_cap(1, 2) = }") # ~= 5.24
558-
print(f"Spheres intersetion: {vol_spheres_intersect(2, 2, 1) = }") # ~= 21.21
558+
print(f"Spheres intersection: {vol_spheres_intersect(2, 2, 1) = }") # ~= 21.21
559559
print(f"Spheres union: {vol_spheres_union(2, 2, 1) = }") # ~= 45.81
560560
print(
561561
f"Hollow Circular Cylinder: {vol_hollow_circular_cylinder(1, 2, 3) = }"

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ name = "thealgorithms-python"
33
version = "0.0.1"
44
description = "TheAlgorithms in Python"
55
authors = [ { name = "TheAlgorithms Contributors" } ]
6-
requires-python = ">=3.13"
6+
requires-python = ">=3.14"
77
classifiers = [
88
"Programming Language :: Python :: 3 :: Only",
9-
"Programming Language :: Python :: 3.13",
109
]
1110
dependencies = [
1211
"beautifulsoup4>=4.12.3",
@@ -49,7 +48,7 @@ euler-validate = [
4948
]
5049

5150
[tool.ruff]
52-
target-version = "py313"
51+
target-version = "py314"
5352

5453
output-format = "full"
5554
lint.select = [
@@ -110,7 +109,7 @@ lint.ignore = [
110109
# `ruff rule S101` for a description of that rule
111110
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` -- FIX ME
112111
"B905", # `zip()` without an explicit `strict=` parameter -- FIX ME
113-
"EM101", # Exception must not use a string literal, assign to variable first
112+
"EM101", # Exception must not use a string literal, assign to a variable first
114113
"EXE001", # Shebang is present but file is not executable -- DO NOT FIX
115114
"G004", # Logging statement uses f-string
116115
"ISC001", # Conflicts with ruff format -- DO NOT FIX
@@ -126,6 +125,7 @@ lint.ignore = [
126125
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
127126
"SIM905", # Consider using a list literal instead of `str.split` -- DO NOT FIX
128127
"SLF001", # Private member accessed: `_Iterator` -- FIX ME
128+
"UP037", # FIX ME
129129
]
130130

131131
lint.per-file-ignores."data_structures/hashing/tests/test_hash_map.py" = [

sorts/comb_sort.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
Comb sort improves on bubble sort algorithm.
66
In bubble sort, distance (or gap) between two compared elements is always one.
77
Comb sort improvement is that gap can be much more than 1, in order to prevent slowing
8-
down by small values
9-
at the end of a list.
8+
down by small values at the end of a list.
109
1110
More info on: https://en.wikipedia.org/wiki/Comb_sort
1211

0 commit comments

Comments
 (0)