Skip to content

Commit

Permalink
Merge pull request #147 from pypa/rm-pytest-flake8
Browse files Browse the repository at this point in the history
Run flake8 static checks separately from test suite
  • Loading branch information
takluyver authored Aug 2, 2022
2 parents 6f49074 + a29513a commit cc68a41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
FORCE_COLOR: 1

jobs:
isort:
static-checks:
runs-on: ubuntu-latest

steps:
Expand All @@ -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 }}
Expand Down
1 change: 0 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pytest
pytest-flake8
flake8
testpath
tomli
Expand Down
3 changes: 0 additions & 3 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit cc68a41

Please sign in to comment.