Skip to content

autoblack: actions/checkout@v1 # Use v1, NOT v2 #1796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/autoblack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1 # Use v1, NOT v2
- uses: actions/setup-python@v1
- run: pip install black
- run: black --check .
Expand Down
7 changes: 4 additions & 3 deletions ciphers/rot13.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def dencrypt(s: str, n: int=13):
def dencrypt(s: str, n: int = 13):
"""
https://en.wikipedia.org/wiki/ROT13

Expand All @@ -24,13 +24,14 @@ def main():
s0 = input("Enter message: ")

s1 = dencrypt(s0, 13)
print("Encryption:", s1)
print("Encryption:", s1)

s2 = dencrypt(s1, 13)
print("Decryption: ", s2)
print("Decryption: ", s2)


if __name__ == "__main__":
import doctest

doctest.testmod()
main()
1 change: 1 addition & 0 deletions sorts/comb_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def comb_sort(data: list) -> list:

if __name__ == "__main__":
import doctest

doctest.testmod()

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