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

Run flake8 static checks separately from test suite
pull/145/merge
Thomas Kluyver 2 months ago committed by GitHub
commit cc68a414be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/tests.yml
  2. 1
      dev-requirements.txt
  3. 3
      pytest.ini
  4. 4
      tox.ini

@ -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 }}

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

@ -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

@ -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 =

Loading…
Cancel
Save