Skip to content

Commit 5f4da5d

Browse files
cclaussgithub-actions
andauthored
isort --profile black . (TheAlgorithms#2181)
* updating DIRECTORY.md * isort --profile black . * Black after * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent cd3e8f9 commit 5f4da5d

File tree

80 files changed

+123
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+123
-127
lines changed

.github/workflows/autoblack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: failure()
1818
run: |
1919
black .
20-
isort --profile black --recursive .
20+
isort --profile black .
2121
git config --global user.name github-actions
2222
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
2323
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY

DIRECTORY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@
253253
* [Finding Bridges](https://github.com/TheAlgorithms/Python/blob/master/graphs/finding_bridges.py)
254254
* [Frequent Pattern Graph Miner](https://github.com/TheAlgorithms/Python/blob/master/graphs/frequent_pattern_graph_miner.py)
255255
* [G Topological Sort](https://github.com/TheAlgorithms/Python/blob/master/graphs/g_topological_sort.py)
256+
* [Gale Shapley Bigraph](https://github.com/TheAlgorithms/Python/blob/master/graphs/gale_shapley_bigraph.py)
256257
* [Graph List](https://github.com/TheAlgorithms/Python/blob/master/graphs/graph_list.py)
257258
* [Graph Matrix](https://github.com/TheAlgorithms/Python/blob/master/graphs/graph_matrix.py)
258259
* [Graphs Floyd Warshall](https://github.com/TheAlgorithms/Python/blob/master/graphs/graphs_floyd_warshall.py)
@@ -596,6 +597,7 @@
596597

597598
## Searches
598599
* [Binary Search](https://github.com/TheAlgorithms/Python/blob/master/searches/binary_search.py)
600+
* [Double Linear Search](https://github.com/TheAlgorithms/Python/blob/master/searches/double_linear_search.py)
599601
* [Fibonacci Search](https://github.com/TheAlgorithms/Python/blob/master/searches/fibonacci_search.py)
600602
* [Hill Climbing](https://github.com/TheAlgorithms/Python/blob/master/searches/hill_climbing.py)
601603
* [Interpolation Search](https://github.com/TheAlgorithms/Python/blob/master/searches/interpolation_search.py)

arithmetic_analysis/in_static_equilibrium.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
mypy : passed
77
"""
88

9-
from numpy import array, cos, sin, radians, cross # type: ignore
109
from typing import List
1110

11+
from numpy import array, cos, cross, radians, sin # type: ignore
12+
1213

1314
def polar_force(
1415
magnitude: float, angle: float, radian_mode: bool = False

arithmetic_analysis/newton_raphson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Author: Syed Haseeb Shah (github.com/QuantumNovice)
33
# The Newton-Raphson method (also known as Newton's method) is a way to
44
# quickly find a good approximation for the root of a real-valued function
5-
65
from decimal import Decimal
76
from math import * # noqa: F401, F403
7+
88
from sympy import diff
99

1010

ciphers/hill_cipher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
https://www.youtube.com/watch?v=4RhLNDqcjpA
3636
3737
"""
38-
3938
import string
39+
4040
import numpy
4141

4242

ciphers/playfair_cipher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import string
21
import itertools
2+
import string
33

44

55
def chunker(seq, size):

compression/burrows_wheeler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
original character. The BWT is thus a "free" method of improving the efficiency
1111
of text compression algorithms, costing only some extra computation.
1212
"""
13-
from typing import List, Dict
13+
from typing import Dict, List
1414

1515

1616
def all_rotations(s: str) -> List[str]:

computer_vision/harriscorner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import numpy as np
21
import cv2
2+
import numpy as np
33

44
"""
55
Harris Corner Detector

data_structures/binary_tree/non_recursive_segment_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
>>> st.query(0, 2)
3636
[1, 2, 3]
3737
"""
38-
from typing import List, Callable, TypeVar
38+
from typing import Callable, List, TypeVar
3939

4040
T = TypeVar("T")
4141

data_structures/binary_tree/segment_tree_other.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
allowing queries to be done later in log(N) time
44
function takes 2 values and returns a same type value
55
"""
6-
7-
from queue import Queue
86
from collections.abc import Sequence
7+
from queue import Queue
98

109

1110
class SegmentTreeNode(object):

0 commit comments

Comments
 (0)