Skip to content

Commit 433794b

Browse files
Fix tox lint environment to use setup.cfg flake8 config
1 parent 90590d8 commit 433794b

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ coverage.xml
4646
venv/
4747

4848

49+
4950
# Developers
5051
*.sw*
5152
manage.py
@@ -55,3 +56,5 @@ manage.py
5556
drf_example
5657

5758
pytest.ini
59+
60+

example/tests/integration/test_includes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import pytest
22
from django.urls import reverse
33

4-
5-
64
pytestmark = pytest.mark.django_db
75

86

@@ -38,7 +36,6 @@ def test_missing_field_not_included(author_bio_factory, author_factory, client):
3836
# First author does not have a bio
3937
author = author_factory(bio=None)
4038
response = client.get(reverse("author-detail", args=[author.pk]) + "?include=bio")
41-
###
4239
content = response.json()
4340
assert "included" in content
4441
assert content["included"] == []

setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ exclude =
2020
build/lib,
2121
.eggs
2222
.tox,
23-
env
24-
.venv
23+
env,
24+
.venv,
25+
venv
2526

2627
[isort]
2728
multi_line_output = 3

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ deps =
4747
-rrequirements/requirements-documentation.txt
4848
commands =
4949
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
50+
51+
52+

0 commit comments

Comments
 (0)