Skip to content

Commit

Permalink
Added automated Black linter
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRobidas committed Mar 11, 2022
1 parent 3904b0e commit 5260150
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Black
run: pip install black
- name: Run linters
uses: samuelmeuli/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
black: true
auto_fix: true
commit_message: "Code style standardization"

0 comments on commit 5260150

Please sign in to comment.