Skip to content

Commit b1377f0

Browse files
cclaussgithub-actions
and
github-actions
authored
autoblack: actions/checkout@v1 # Use v1, NOT v2 (TheAlgorithms#1796)
* autoblack: actions/checkout@v1 # Use v1, NOT v2 * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 10fc90c commit b1377f0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/autoblack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v1 # Use v1, NOT v2
1313
- uses: actions/setup-python@v1
1414
- run: pip install black
1515
- run: black --check .

ciphers/rot13.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def dencrypt(s: str, n: int=13):
1+
def dencrypt(s: str, n: int = 13):
22
"""
33
https://en.wikipedia.org/wiki/ROT13
44
@@ -24,13 +24,14 @@ def main():
2424
s0 = input("Enter message: ")
2525

2626
s1 = dencrypt(s0, 13)
27-
print("Encryption:", s1)
27+
print("Encryption:", s1)
2828

2929
s2 = dencrypt(s1, 13)
30-
print("Decryption: ", s2)
30+
print("Decryption: ", s2)
3131

3232

3333
if __name__ == "__main__":
3434
import doctest
35+
3536
doctest.testmod()
3637
main()

sorts/comb_sort.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def comb_sort(data: list) -> list:
5454

5555
if __name__ == "__main__":
5656
import doctest
57+
5758
doctest.testmod()
5859

5960
user_input = input("Enter numbers separated by a comma:\n").strip()

0 commit comments

Comments
 (0)