Skip to content

Commit

Permalink
add format checker
Browse files Browse the repository at this point in the history
  • Loading branch information
aiueola committed Jun 28, 2023
1 parent bf53266 commit 61b1713
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflow/lints.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lints

on:
push:
branches:
- main
pull_request: {}

jobs:
lints:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Black
uses: psf/black@stable
with:
args: ". --check --diff"

- name: flake8
run: |
python -m pip install --upgrade pip
pip install flake8
flake8 .

0 comments on commit 61b1713

Please sign in to comment.