summaryrefslogtreecommitdiff
path: root/noxfile.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2021-08-08 12:42:44 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2021-08-12 07:41:30 -0700
commit030b8b4ef630ab4e2957e3b2b6f5f09f619ca779 (patch)
treef880952af8a7b638b0f9c861b95619320f5ae4df /noxfile.py
parent346bba7a0fca0cd1c39f6b371ea8d0eb8686fd20 (diff)
downloadpip-030b8b4ef630ab4e2957e3b2b6f5f09f619ca779.tar.gz
Upgrade nox to remove mypy ignores
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/noxfile.py b/noxfile.py
index f0b5b1810..3cab71848 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -40,8 +40,7 @@ def run_with_protected_pip(session: nox.Session, *arguments: str) -> None:
(stable) version, and not the code being tested. This ensures pip being
used is not the code being tested.
"""
- # https://github.com/theacodes/nox/pull/377
- env = {"VIRTUAL_ENV": session.virtualenv.location} # type: ignore
+ env = {"VIRTUAL_ENV": session.virtualenv.location}
command = ("python", LOCATIONS["protected-pip"]) + arguments
session.run(*command, env=env, silent=True)
@@ -87,8 +86,7 @@ def test(session: nox.Session) -> None:
session.log(msg)
# Build source distribution
- # https://github.com/theacodes/nox/pull/377
- sdist_dir = os.path.join(session.virtualenv.location, "sdist") # type: ignore
+ sdist_dir = os.path.join(session.virtualenv.location, "sdist")
if os.path.exists(sdist_dir):
shutil.rmtree(sdist_dir, ignore_errors=True)