Skip to content

Commit

Permalink
build: Handle deps and linting with Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jag1g13 committed Aug 30, 2020
1 parent 4c26d2a commit 637583f
Show file tree
Hide file tree
Showing 5 changed files with 811 additions and 14 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
pip install -r .requirements-test.txt
- name: Lint with flake8
pip install poetry
poetry install --extras test
- name: Lint with flake8 and prospector
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# check for other issues but don't stop the build
prospector --strictness veryhigh --zero-exit
- name: Test with pytest
run: |
pytest
3 changes: 0 additions & 3 deletions .requirements-test.txt

This file was deleted.

Loading

0 comments on commit 637583f

Please sign in to comment.