Skip to content

Commit

Permalink
Use Black to Autoformat
Browse files Browse the repository at this point in the history
I had linting confused with prettifying, linting tests for properly formatted code, while auto-formatting fits this project better
  • Loading branch information
rdg922 authored Oct 22, 2024
1 parent 1a38bb8 commit ac1d077
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/pylint.yml → .github/workflows/auto-format.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pylint
name: AutoFormat

on: [push]

Expand All @@ -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 }}

0 comments on commit ac1d077

Please sign in to comment.