mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 10:31:29 +08:00
isort --profile black --recursive . (#2170)
* isort --profile black --recursive . * Update codespell.yml * typo: vertices * typo: Explanation * typo: Explanation * Fix typos
This commit is contained in:
3
.github/workflows/autoblack.yml
vendored
3
.github/workflows/autoblack.yml
vendored
@ -11,12 +11,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v1 # Use v1, NOT v2
|
||||
- uses: actions/setup-python@v2
|
||||
- run: pip install black
|
||||
- run: pip install black isort
|
||||
- run: black --check .
|
||||
- name: If needed, commit black changes to a new pull request
|
||||
if: failure()
|
||||
run: |
|
||||
black .
|
||||
isort --profile black --recursive .
|
||||
git config --global user.name github-actions
|
||||
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||
|
4
.github/workflows/codespell.yml
vendored
4
.github/workflows/codespell.yml
vendored
@ -13,5 +13,5 @@ jobs:
|
||||
SKIP="./.*,./other/dictionary.txt,./other/words,./project_euler/problem_22/p022_names.txt"
|
||||
codespell -L ans,fo,hist,iff,secant,tim --skip=$SKIP --quiet-level=2
|
||||
- name: Codespell comment
|
||||
if: ${{ failure() }}
|
||||
uses: plettich/python_codespell_action@master
|
||||
if: ${{ failure() }}
|
||||
uses: plettich/python_codespell_action@master
|
||||
|
Reference in New Issue
Block a user