From 56e5582677acd1c3e41e72476bb31ea65157c220 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 8 Oct 2022 04:37:43 -0400 Subject: [PATCH] chore(deps): update pre-commit (#656) Signed-off-by: Henry Schreiner Signed-off-by: Henry Schreiner --- .pre-commit-config.yaml | 8 ++++---- nox/sessions.py | 2 +- tests/test_command.py | 30 ++++++++++++++++++++---------- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index edd1c703..3f34694e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/psf/black - rev: "22.6.0" + rev: "22.10.0" hooks: - id: black args: @@ -31,7 +31,7 @@ repos: args: ["-a", "from __future__ import annotations"] - repo: https://github.com/asottile/pyupgrade - rev: v2.37.3 + rev: v3.0.0 hooks: - id: pyupgrade args: [--py37-plus] @@ -63,7 +63,7 @@ repos: additional_dependencies: *flake8-dependencies - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.971 + rev: v0.982 hooks: - id: mypy files: ^nox/ @@ -74,7 +74,7 @@ repos: - importlib_metadata - repo: https://github.com/codespell-project/codespell - rev: v2.1.0 + rev: v2.2.1 hooks: - id: codespell diff --git a/nox/sessions.py b/nox/sessions.py index 483c34d8..66d4bd64 100644 --- a/nox/sessions.py +++ b/nox/sessions.py @@ -484,7 +484,7 @@ def conda_install( # Install in editable mode. session.install('-e', '.', '--no-deps') - You can specify a conda channel using `channel=`; a falsy value will + You can specify a conda channel using `channel=`; a falsey value will not change the current channels. You can specify a list of channels if needed. diff --git a/tests/test_command.py b/tests/test_command.py index f649459c..154ec0b8 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -230,8 +230,10 @@ def test_fail_with_silent(capsys): [ PYTHON, "-c", - 'import sys; sys.stdout.write("out");' - 'sys.stderr.write("err"); sys.exit(1)', + ( + 'import sys; sys.stdout.write("out");' + 'sys.stderr.write("err"); sys.exit(1)' + ), ], silent=True, ) @@ -390,8 +392,10 @@ def test_custom_stdout(capsys, tmpdir): [ PYTHON, "-c", - 'import sys; sys.stdout.write("out");' - 'sys.stderr.write("err"); sys.exit(0)', + ( + 'import sys; sys.stdout.write("out");' + 'sys.stderr.write("err"); sys.exit(0)' + ), ], stdout=stdout, ) @@ -418,8 +422,10 @@ def test_custom_stdout_failed_command(capsys, tmpdir): [ PYTHON, "-c", - 'import sys; sys.stdout.write("out");' - 'sys.stderr.write("err"); sys.exit(1)', + ( + 'import sys; sys.stdout.write("out");' + 'sys.stderr.write("err"); sys.exit(1)' + ), ], stdout=stdout, ) @@ -439,8 +445,10 @@ def test_custom_stderr(capsys, tmpdir): [ PYTHON, "-c", - 'import sys; sys.stdout.write("out");' - 'sys.stderr.write("err"); sys.exit(0)', + ( + 'import sys; sys.stdout.write("out");' + 'sys.stderr.write("err"); sys.exit(0)' + ), ], stderr=stderr, ) @@ -461,8 +469,10 @@ def test_custom_stderr_failed_command(capsys, tmpdir): [ PYTHON, "-c", - 'import sys; sys.stdout.write("out");' - 'sys.stderr.write("err"); sys.exit(1)', + ( + 'import sys; sys.stdout.write("out");' + 'sys.stderr.write("err"); sys.exit(1)' + ), ], stderr=stderr, )