Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the Flake8 Pytest plugin #220

Merged
merged 3 commits into from Oct 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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