Skip to content

Commit

Permalink
Formats the whole code base with Black. Adds lint check in continuous…
Browse files Browse the repository at this point in the history
… integration
  • Loading branch information
fakufaku committed Sep 17, 2021
1 parent 830dddf commit 6fbcd37
Show file tree
Hide file tree
Showing 113 changed files with 6,795 additions and 4,431 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install Python dependencies
run: pip install black flake8

- name: Run linters
uses: wearerequired/lint-action@v1
with:
black: true
black_args: "--check"
flake8: false
Loading

0 comments on commit 6fbcd37

Please sign in to comment.