Skip to content

Commit

Permalink
Merge pull request #220 from SkeletalDemise/main
Browse files Browse the repository at this point in the history
Use the Flake8 Pytest plugin Because now contributors can just run pytest to run all the tests including Flake8 instead of having to install Flake8 and run it separately with the CLI.
  • Loading branch information
bee-san committed Oct 23, 2021
2 parents 85f74cd + 67de66b commit 1bdab9e
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .flake8
@@ -1,3 +1,3 @@
[flake8]
ignore = E501,W503
max-line-length = 88
ignore = E501, E203, W503
3 changes: 1 addition & 2 deletions .github/workflows/main.yaml
Expand Up @@ -16,8 +16,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: python -m pip install flake8 nox poetry
- run: flake8 . --count --show-source --statistics
- run: python -m pip install nox poetry
- run: python -m nox
env:
OS: ${{ matrix.os }}
Expand Down
6 changes: 6 additions & 0 deletions conftest.py
@@ -0,0 +1,6 @@
import logging


def pytest_configure(config):
# Silence Flake8 warnings
logging.getLogger("flake8").setLevel(logging.ERROR)
1 change: 1 addition & 0 deletions noxfile.py
Expand Up @@ -46,6 +46,7 @@ def tests(session: Session) -> None:
"pytest-black",
"pytest-cov",
"pytest-isort",
"pytest-flake8",
"pytest-mypy",
"types-requests",
"types-orjson",
Expand Down

0 comments on commit 1bdab9e

Please sign in to comment.