Skip to content

Commit e329c0a

Browse files
committed
Try import-untyped on CI
1 parent 939553d commit e329c0a

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

mypy.ini

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude = (?x)(
1515
)
1616
disable_error_code =
1717
# TODO: Not all dependencies are typed. Namely: distutils._modified, wheel.wheelfile, and jaraco.*
18-
import-untyped,
18+
; import-untyped,
1919
# Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes,
2020
# w/o updating all the attributes and return types from the base classes for type-checkers to understand
2121
# Especially with setuptools.dist.command vs distutils.dist.command vs setuptools._distutils.dist.command
@@ -27,13 +27,13 @@ disable_error_code =
2727
[mypy-pkg_resources.extern.*,setuptools.extern.*]
2828
ignore_missing_imports = True
2929

30-
[mypy-pkg_resources.tests.*,setuptools.tests.*]
31-
disable_error_code =
32-
# Tests include creating dynamic modules that won't exists statically before the test is run.
33-
# Let's ignore all "import-not-found", as if an import really wasn't found, then the test would fail.
34-
import-not-found,
35-
# mmany untyped "jaraco" modules
36-
import-untyped,
30+
; [mypy-pkg_resources.tests.*,setuptools.tests.*]
31+
; disable_error_code =
32+
; # Tests include creating dynamic modules that won't exists statically before the test is run.
33+
; # Let's ignore all "import-not-found", as if an import really wasn't found, then the test would fail.
34+
; import-not-found,
35+
; # Many untyped "jaraco" modules
36+
; import-untyped,
3737

3838
# Mypy issue, this vendored module is already excluded!
3939
[mypy-setuptools._vendor.packaging._manylinux]

setuptools/command/easy_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ def _wrap_lines(cls, lines):
17641764

17651765

17661766
if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'raw') == 'rewrite':
1767-
PthDistributions = RewritePthDistributions
1767+
PthDistributions = RewritePthDistributions # type: ignore[misc] # Overwriting type
17681768

17691769

17701770
def _first_line_re():

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ setenv =
66
PYTHONWARNDEFAULTENCODING = 1
77
SETUPTOOLS_ENFORCE_DEPRECATION = {env:SETUPTOOLS_ENFORCE_DEPRECATION:0}
88
# ^-- Temporarily disable enforcement so CI don't fail on due dates
9-
MYPY_FORCE_COLOR = 1
109
commands =
1110
pyright .
1211
pytest --mypy {posargs}
13-
mypy .
1412
usedevelop = True
1513
extras =
1614
testing

0 commit comments

Comments
 (0)