GeezerVison is showing github.com — actions/setup-python@v2 (#1986) · D4VA/Python@565060a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/autoblack.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | steps: |
12 | 12 | - uses: actions/checkout@v1 # Use v1, NOT v2 |
13 | | - - uses: actions/setup-python@v1 |
| 13 | + - uses: actions/setup-python@v2 |
14 | 14 | - run: pip install black |
15 | 15 | - run: black --check . |
16 | 16 | - name: If needed, commit black changes to a new pull request |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/codespell.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | runs-on: ubuntu-latest |
8 | 8 | steps: |
9 | 9 | - uses: actions/checkout@v2 |
10 | | - - uses: actions/setup-python@v1 |
| 10 | + - uses: actions/setup-python@v2 |
11 | 11 | - run: pip install codespell flake8 |
12 | 12 | - run: | |
13 | 13 | SKIP="./.*,./other/dictionary.txt,./other/words,./project_euler/problem_22/p022_names.txt" |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/directory_writer.yml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | runs-on: ubuntu-latest |
8 | 8 | steps: |
9 | 9 | - uses: actions/checkout@v1 # v1, NOT v2 |
10 | | - - uses: actions/setup-python@v1 |
| 10 | + - uses: actions/setup-python@v2 |
11 | 11 | with: |
12 | 12 | python-version: 3.x |
13 | 13 | - name: Write DIRECTORY.md |
|
20 | 20 | run: | |
21 | 21 | git add DIRECTORY.md |
22 | 22 | git commit -am "updating DIRECTORY.md" || true |
23 | | - git push --force origin HEAD:$GITHUB_REF || true |
| 23 | + git push --force origin HEAD:$GITHUB_REF || true |
Collapse file
Copy file name to clipboardExpand all lines: DIRECTORY.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
293 | 293 | * [Abs Max](https://github.com/TheAlgorithms/Python/blob/master/maths/abs_max.py) |
294 | 294 | * [Abs Min](https://github.com/TheAlgorithms/Python/blob/master/maths/abs_min.py) |
295 | 295 | * [Add](https://github.com/TheAlgorithms/Python/blob/master/maths/add.py) |
| 296 | + * [Aliquot Sum](https://github.com/TheAlgorithms/Python/blob/master/maths/aliquot_sum.py) |
296 | 297 | * [Allocation Number](https://github.com/TheAlgorithms/Python/blob/master/maths/allocation_number.py) |
297 | 298 | * [Area Under Curve](https://github.com/TheAlgorithms/Python/blob/master/maths/area_under_curve.py) |
298 | 299 | * [Armstrong Numbers](https://github.com/TheAlgorithms/Python/blob/master/maths/armstrong_numbers.py) |
|
Collapse file
Copy file name to clipboardExpand all lines: maths/prime_numbers.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -65,5 +65,6 @@ def primes(max: int) -> Generator[int, None, None]: |
65 | 65 |
|
66 | 66 | # Let's benchmark them side-by-side... |
67 | 67 | from timeit import timeit |
| 68 | + |
68 | 69 | print(timeit("slow_primes(1_000_000)", setup="from __main__ import slow_primes")) |
69 | 70 | print(timeit("primes(1_000_000)", setup="from __main__ import primes")) |