Skip to content

Commit

Permalink
ci lint with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Hamman committed Aug 4, 2020
1 parent 2b59211 commit 10431ef
Showing 1 changed file with 4 additions and 46 deletions.
50 changes: 4 additions & 46 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,12 @@ on:
branches: master

jobs:
lint-black:
name: black-formatter
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8
- name: Install Black
run: |
python -m pip install black
- name: Black Code Formatter
run: |
black --check --line-length 100 --skip-string-normalization .
lint-flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8
- name: Install Flake8
run: |
python -m pip install flake8
- name: Flake8 check
run: |
flake8 .
lint-isort:
name: isort
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8
- name: Install isort
run: |
python -m pip install isort
- name: isort check
run: |
isort --check-only .
- uses: actions/[email protected]
- uses: actions/[email protected]
- uses: pre-commit/[email protected]
test:
name: ${{ matrix.python-version }}-build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 10431ef

Please sign in to comment.