Skip to content

Commit

Permalink
added flake8 to dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tihom committed Aug 24, 2024
1 parent 06040bf commit bf317cf
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ jobs:
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
poetry install
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
poetry install --with dev
- 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
flake8 mango --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
flake8 mango --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest tests/
55 changes: 54 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ attrdict = ">=2.0.1"
black = "^24.2.0"
pytest = "^7.4.0"
jupyter = "^1.0.0"
flake8 = "^7.1.1"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit bf317cf

Please # to comment.