Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
pschmitt committed Nov 25, 2020
1 parent 0d0fa3d commit 23c1bb0
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 22 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/lint.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Lint
name: CI

on: [push, pull_request]

Expand All @@ -13,6 +13,7 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -21,16 +22,16 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black
if [[ -f requirements.txt ]]; then pip install -r requirements.txt; fi
pip install poetry
poetry install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. Set line length to 80 chars max.
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics
- name: Black
run: |
black --check --line-length=80 --diff .
poetry run black --check --line-length=80 --diff .
Loading

0 comments on commit 23c1bb0

Please sign in to comment.