Skip to content

Commit 545fc89

Browse files
authored
Merge branch 'master' into patch-33
2 parents 49654da + cbbaa98 commit 545fc89

File tree

286 files changed

+8567
-1306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+8567
-1306
lines changed

.github/FUNDING.yml

-12
This file was deleted.

.github/stale.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ markComment: >
1515
recent activity. It will be closed if no further activity occurs. Thank you
1616
for your contributions.
1717
# Comment to post when closing a stale issue. Set to `false` to disable
18-
closeComment: true
18+
closeComment: >
19+
Please reopen this issue once you commit the changes requested or
20+
make improvements on the code. Thank you for your contributions.

.github/workflows/autoblack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v1 # Use v1, NOT v2
13-
- uses: actions/setup-python@v1
13+
- uses: actions/setup-python@v2
1414
- run: pip install black
1515
- run: black --check .
1616
- name: If needed, commit black changes to a new pull request

.github/workflows/codespell.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- uses: actions/setup-python@v1
10+
- uses: actions/setup-python@v2
1111
- run: pip install codespell flake8
1212
- run: |
1313
SKIP="./.*,./other/dictionary.txt,./other/words,./project_euler/problem_22/p022_names.txt"
1414
codespell -L ans,fo,hist,iff,secant,tim --skip=$SKIP --quiet-level=2
15+
- name: Codespell comment
16+
if: ${{ failure() }}
17+
uses: plettich/python_codespell_action@master

.github/workflows/directory_writer.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v1 # v1, NOT v2
10-
- uses: actions/setup-python@v1
10+
- uses: actions/setup-python@v2
1111
with:
1212
python-version: 3.x
1313
- name: Write DIRECTORY.md
@@ -20,4 +20,4 @@ jobs:
2020
run: |
2121
git add DIRECTORY.md
2222
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

.github/workflows/stale.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ jobs:
99
- uses: actions/stale@v1
1010
with:
1111
repo-token: ${{ secrets.GITHUB_TOKEN }}
12-
stale-issue-message: 'Stale issue message'
13-
stale-pr-message: 'Stale pull request message'
12+
stale-issue-message: >
13+
Please reopen this issue once you add more information and updates here.
14+
If this is not the case and you need some help, feel free to seek help
15+
from our [Gitter](https://gitter.im/TheAlgorithms) or ping one of the
16+
reviewers. Thank you for your contributions!
17+
stale-pr-message: >
18+
Please reopen this pull request once you commit the changes requested
19+
or make improvements on the code. If this is not the case and you need
20+
some help, feel free to seek help from our [Gitter](https://gitter.im/TheAlgorithms)
21+
or ping one of the reviewers. Thank you for your contributions!
1422
stale-issue-label: 'no-issue-activity'
1523
stale-pr-label: 'no-pr-activity'

.travis.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
os: linux
2-
dist: bionic
2+
dist: focal
33
language: python
44
python: 3.8
55
cache: pip
66
before_install: pip install --upgrade pip setuptools six
7-
install: pip install -r requirements.txt
7+
install: pip install black flake8
8+
notifications:
9+
webhooks: https://www.travisbuddy.com/
10+
on_success: never
811
before_script:
912
- black --check . || true
10-
- flake8 . --count --select=E101,E722,E9,F4,F63,F7,F82,W191 --show-source --statistics
11-
- flake8 . --count --exit-zero --max-line-length=127 --statistics
12-
script:
13+
- flake8 --ignore=E203,W503 --max-complexity=25 --max-line-length=88 --statistics --count .
1314
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
15+
- pip install -r requirements.txt # fast fail on black, flake8, validate_filenames
16+
script:
1417
- mypy --ignore-missing-imports .
1518
- pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=. .
1619
after_success:

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ We want your work to be readable by others; therefore, we encourage you to note
6868
black .
6969
```
7070

71-
- All submissions will need to pass the test __flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics__ before they will be accepted so if possible, try this test locally on your Python file(s) before submitting your pull request.
71+
- All submissions will need to pass the test __flake8 . --ignore=E203,W503 --max-line-length=88__ before they will be accepted so if possible, try this test locally on your Python file(s) before submitting your pull request.
7272

7373
```bash
7474
pip3 install flake8 # only required the first time
75-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
75+
flake8 . --ignore=E203,W503 --max-line-length=88 --show-source
7676
```
7777

7878
- Original code submission require docstrings or comments to describe your work.
@@ -138,7 +138,7 @@ We want your work to be readable by others; therefore, we encourage you to note
138138
The use of [Python type hints](https://docs.python.org/3/library/typing.html) is encouraged for function parameters and return values. Our automated testing will run [mypy](http://mypy-lang.org) so run that locally before making your submission.
139139

140140
```python
141-
def sum_ab(a: int, b: int) --> int:
141+
def sum_ab(a: int, b: int) -> int:
142142
return a + b
143143
```
144144

0 commit comments

Comments
 (0)