From e178af4512b1a24a7b3c60ceea59749c89056902 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 15 May 2020 20:48:49 +0200 Subject: [PATCH 1/5] actions/setup-python@v2 --- .github/workflows/directory_writer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/directory_writer.yml b/.github/workflows/directory_writer.yml index 77b0e1a262e1..6547d1c18c79 100644 --- a/.github/workflows/directory_writer.yml +++ b/.github/workflows/directory_writer.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 # v1, NOT v2 - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v2 with: python-version: 3.x - name: Write DIRECTORY.md @@ -20,4 +20,4 @@ jobs: run: | git add DIRECTORY.md git commit -am "updating DIRECTORY.md" || true - git push --force origin HEAD:$GITHUB_REF || true \ No newline at end of file + git push --force origin HEAD:$GITHUB_REF || true From 42b4444268cb0928197c5ff2dbe4c2f480c9c116 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Fri, 15 May 2020 18:49:27 +0000 Subject: [PATCH 2/5] fixup! Format Python code with psf/black push --- maths/prime_numbers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/maths/prime_numbers.py b/maths/prime_numbers.py index 9aedf6864b0e..1b2a29f1a203 100644 --- a/maths/prime_numbers.py +++ b/maths/prime_numbers.py @@ -65,5 +65,6 @@ def primes(max: int) -> Generator[int, None, None]: # Let's benchmark them side-by-side... from timeit import timeit + print(timeit("slow_primes(1_000_000)", setup="from __main__ import slow_primes")) print(timeit("primes(1_000_000)", setup="from __main__ import primes")) From 24aa26b47febcb08fab7b5ae8e7db91a9b98037b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 15 May 2020 21:25:51 +0200 Subject: [PATCH 3/5] Update autoblack.yml --- .github/workflows/autoblack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoblack.yml b/.github/workflows/autoblack.yml index 99243f3ec7fc..44249f78725c 100644 --- a/.github/workflows/autoblack.yml +++ b/.github/workflows/autoblack.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 # Use v1, NOT v2 - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v2 - run: pip install black - run: black --check . - name: If needed, commit black changes to a new pull request From 496636b6fbe0c4f1ad23934711233689022035a6 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Fri, 15 May 2020 19:26:14 +0000 Subject: [PATCH 4/5] updating DIRECTORY.md --- DIRECTORY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/DIRECTORY.md b/DIRECTORY.md index fa20a2ae349e..f4499d8e07bd 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -293,6 +293,7 @@ * [Abs Max](https://github.com/TheAlgorithms/Python/blob/master/maths/abs_max.py) * [Abs Min](https://github.com/TheAlgorithms/Python/blob/master/maths/abs_min.py) * [Add](https://github.com/TheAlgorithms/Python/blob/master/maths/add.py) + * [Aliquot Sum](https://github.com/TheAlgorithms/Python/blob/master/maths/aliquot_sum.py) * [Allocation Number](https://github.com/TheAlgorithms/Python/blob/master/maths/allocation_number.py) * [Area Under Curve](https://github.com/TheAlgorithms/Python/blob/master/maths/area_under_curve.py) * [Armstrong Numbers](https://github.com/TheAlgorithms/Python/blob/master/maths/armstrong_numbers.py) From 97f62e5e52175fa498bcd991b06213bfb38a23a1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 15 May 2020 21:26:26 +0200 Subject: [PATCH 5/5] Update codespell.yml --- .github/workflows/codespell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 188538775a2f..010adffa9053 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v2 - run: pip install codespell flake8 - run: | SKIP="./.*,./other/dictionary.txt,./other/words,./project_euler/problem_22/p022_names.txt"