mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-06 22:05:54 +00:00
autoblack: actions/checkout@v1 # Use v1, NOT v2 (#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>
This commit is contained in:
parent
10fc90c7bd
commit
b1377f0e57
2
.github/workflows/autoblack.yml
vendored
2
.github/workflows/autoblack.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v1 # Use v1, NOT v2
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
- run: pip install black
|
- run: pip install black
|
||||||
- run: black --check .
|
- run: black --check .
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
def dencrypt(s: str, n: int=13):
|
def dencrypt(s: str, n: int = 13):
|
||||||
"""
|
"""
|
||||||
https://en.wikipedia.org/wiki/ROT13
|
https://en.wikipedia.org/wiki/ROT13
|
||||||
|
|
||||||
@ -32,5 +32,6 @@ def main():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import doctest
|
import doctest
|
||||||
|
|
||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
main()
|
main()
|
||||||
|
@ -54,6 +54,7 @@ def comb_sort(data: list) -> list:
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import doctest
|
import doctest
|
||||||
|
|
||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
|
|
||||||
user_input = input("Enter numbers separated by a comma:\n").strip()
|
user_input = input("Enter numbers separated by a comma:\n").strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user