Skip to content

Commit

Permalink
Run flake8 together with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshadura committed Mar 24, 2022
1 parent cdcdb81 commit 8c364ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
pip install .
./setup.py build sdist bdist
- name: Setup flake8 annotations
uses: rbialon/flake8-annotations@v1

- name: Lint with flake8
run: |
pip install .[lint]
flake8
- name: Install test dependencies
run: pip install .[test]

Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ tests_require = git-crecord[test]
[options.extras_require]
test =
pytest >= 6
lint =
flake8
flake8-docstrings
flake8-blind-except
flake8-builtins

[tool:pytest]
addopts = --doctest-modules
Expand Down

0 comments on commit 8c364ae

Please # to comment.