Skip to content

Commit 0df59e3

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

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-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

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

6-
import helpers
6+
from . import helpers
77
from twine import cli
88
from twine import exceptions
99
from twine.commands import register

tests/test_upload.py

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

18-
import helpers
18+
from . import helpers
1919
from twine import cli
2020
from twine import exceptions
2121
from twine import package as package_file

tests/test_utils.py

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

22-
import helpers
22+
from . import helpers
2323
from twine import exceptions
2424
from twine import utils
2525

tests/test_wheel.py

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

20-
import helpers
20+
from . import helpers
2121
from twine import exceptions
2222
from twine import wheel
2323

0 commit comments

Comments
 (0)