Skip to content

Commit

Permalink
chore(deps): update pre-commit (#656)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Oct 8, 2022
1 parent cdd0f3b commit 56e5582
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: "22.6.0"
rev: "22.10.0"
hooks:
- id: black
args:
Expand All @@ -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]
Expand Down Expand Up @@ -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/
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nox/sessions.py
Expand Up @@ -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.
Expand Down
30 changes: 20 additions & 10 deletions tests/test_command.py
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)
Expand Down

0 comments on commit 56e5582

Please sign in to comment.