mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +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
|
||||
|
||||
Reference in New Issue
Block a user