-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I had linting confused with prettifying, linting tests for properly formatted code, while auto-formatting fits this project better
- Loading branch information
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Pylint | ||
name: AutoFormat | ||
|
||
on: [push] | ||
|
||
|
@@ -17,14 +17,14 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
- name: Install Autopep8 | ||
run: pip install autopep8 | ||
- name: Lint Action | ||
uses: wearerequired/[email protected] | ||
pip install black | ||
- name: Run Black formatter | ||
run: | | ||
black . --line-length 88 | ||
- name: Commit and push changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
autopep8: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Analysing the code with pylint | ||
# run: | | ||
# pylint $(git ls-files '*.py') | ||
commit_message: '🤖 Auto-formatted code with Black' | ||
commit_user_name: GitHub Action | ||
commit_user_email: [email protected] | ||
branch: ${{ github.ref }} |