Skip to content

Commit 4446d1a

Browse files
authored
Merge pull request #10293 from jdufresne/nox
Upgrade nox to remove mypy ignores
2 parents 8bfb6b5 + 030b8b4 commit 4446d1a

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ repos:
5757
args: ["--pretty", "--show-error-codes"]
5858
additional_dependencies: [
5959
'keyring==23.0.1',
60-
'nox==2020.12.31',
60+
'nox==2021.6.12',
6161
'types-docutils==0.1.8',
6262
'types-six==0.1.9',
6363
]

news/65e526fd-8d34-483b-90db-e1e1ac38741a.trivial.rst

Whitespace-only changes.

noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def run_with_protected_pip(session: nox.Session, *arguments: str) -> None:
4040
(stable) version, and not the code being tested. This ensures pip being
4141
used is not the code being tested.
4242
"""
43-
# https://github.com/theacodes/nox/pull/377
44-
env = {"VIRTUAL_ENV": session.virtualenv.location} # type: ignore
43+
env = {"VIRTUAL_ENV": session.virtualenv.location}
4544

4645
command = ("python", LOCATIONS["protected-pip"]) + arguments
4746
session.run(*command, env=env, silent=True)
@@ -87,8 +86,7 @@ def test(session: nox.Session) -> None:
8786
session.log(msg)
8887

8988
# Build source distribution
90-
# https://github.com/theacodes/nox/pull/377
91-
sdist_dir = os.path.join(session.virtualenv.location, "sdist") # type: ignore
89+
sdist_dir = os.path.join(session.virtualenv.location, "sdist")
9290
if os.path.exists(sdist_dir):
9391
shutil.rmtree(sdist_dir, ignore_errors=True)
9492

tools/release/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ def get_version_from_arguments(session: Session) -> Optional[str]:
2626
# We delegate to a script here, so that it can depend on packaging.
2727
session.install("packaging")
2828
cmd = [
29-
# https://github.com/theacodes/nox/pull/378
30-
os.path.join(session.bin, "python"), # type: ignore
29+
os.path.join(session.bin, "python"),
3130
"tools/release/check_version.py",
3231
version,
3332
]
@@ -156,12 +155,11 @@ def workdir(
156155
"""Temporarily chdir when entering CM and chdir back on exit."""
157156
orig_dir = pathlib.Path.cwd()
158157

159-
# https://github.com/theacodes/nox/pull/376
160-
nox_session.chdir(dir_path) # type: ignore
158+
nox_session.chdir(dir_path)
161159
try:
162160
yield dir_path
163161
finally:
164-
nox_session.chdir(orig_dir) # type: ignore
162+
nox_session.chdir(orig_dir)
165163

166164

167165
@contextlib.contextmanager

0 commit comments

Comments
 (0)