Skip to content

Commit

Permalink
Merge pull request #2 from d3b-center/lint-action
Browse files Browse the repository at this point in the history
馃懛 Lint PRs
  • Loading branch information
fiendish committed May 22, 2020
2 parents 1790e32 + 347db3a commit a5bd6cc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python application

on:
pull_request

jobs:
lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black
- name: Lint
run: |
black --check --line-length 80 .
flake8 --ignore=E501,W503,E203 .

0 comments on commit a5bd6cc

Please sign in to comment.