Skip to content

Commit db6b470

Browse files
committed
Tell mypy to ignore tests
1 parent d5c6a98 commit db6b470

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

mypy.ini

+3
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ ignore_missing_imports = True
4949
[mypy-urllib3]
5050
; https://github.com/urllib3/urllib3/issues/867
5151
ignore_missing_imports = True
52+
53+
[mypy-tests.*]
54+
ignore_errors = True

tests/__init__.py

Whitespace-only changes.

tests/test_register.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
import pretend
44
import pytest
55

6-
import helpers
76
from twine import cli
87
from twine import exceptions
98
from twine.commands import register
109

10+
from . import helpers
11+
1112

1213
@pytest.fixture()
1314
def register_settings(make_settings):

tests/test_upload.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
import pytest
1616
import requests
1717

18-
import helpers
1918
from twine import cli
2019
from twine import exceptions
2120
from twine import package as package_file
2221
from twine.commands import upload
2322

23+
from . import helpers
24+
2425
SDIST_FIXTURE = "tests/fixtures/twine-1.5.0.tar.gz"
2526
WHEEL_FIXTURE = "tests/fixtures/twine-1.5.0-py2.py3-none-any.whl"
2627
RELEASE_URL = "https://pypi.org/project/twine/1.5.0/"

tests/test_utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
import pytest
2020
import requests
2121

22-
import helpers
2322
from twine import exceptions
2423
from twine import utils
2524

25+
from . import helpers
26+
2627

2728
def test_get_config(tmpdir):
2829
pypirc = os.path.join(str(tmpdir), ".pypirc")

tests/test_wheel.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
import pretend
1818
import pytest
1919

20-
import helpers
2120
from twine import exceptions
2221
from twine import wheel
2322

23+
from . import helpers
24+
2425

2526
@pytest.fixture(
2627
params=[

0 commit comments

Comments
 (0)