Merge pull request #147 from pypa/rm-pytest-flake8

Run flake8 static checks separately from test suite
pull/149/head
Thomas Kluyver 2022-08-02 10:25:00 +01:00 committed by GitHub
commit cc68a414be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ env:
FORCE_COLOR: 1
jobs:
isort:
static-checks:
runs-on: ubuntu-latest
steps:
@ -23,7 +23,7 @@ jobs:
pip install tox tox-venv
- name: Run tests
run: tox -e isort
run: tox -e isort,flake8
tests:
runs-on: ${{ matrix.os }}

View File

@ -1,5 +1,4 @@
pytest
pytest-flake8
flake8
testpath
tomli

View File

@ -2,10 +2,7 @@
addopts =
--strict-config
--strict-markers
--flake8
xfail_strict = True
junit_family = xunit2
filterwarnings =
error
# Suppress deprecation warning in flake8
ignore:SelectableGroups dict interface is deprecated::flake8

View File

@ -12,6 +12,10 @@ commands = pytest []
deps = isort
commands = python -m isort --check --diff {toxinidir}
[testenv:flake8]
deps = flake8
commands = flake8 pep517
[testenv:release]
skip_install = True
deps =