Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#311)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and blink1073 authored Nov 15, 2022
1 parent 770bd63 commit 4a6b035
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]

- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
rev: v3.2.2
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand All @@ -63,7 +63,7 @@ repos:
stages: [manual]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
rev: v0.990
hooks:
- id: mypy
args: ["--config-file", "pyproject.toml"]
Expand All @@ -77,7 +77,7 @@ repos:
)$
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.18.4
rev: 0.19.1
hooks:
- id: check-jsonschema
name: "Check GitHub Workflows"
Expand Down
4 changes: 2 additions & 2 deletions jupyter_core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


class JupyterParser(argparse.ArgumentParser):
@property # type:ignore[override]
@property
def epilog(self):
"""Add subcommands to epilog on request
Expand Down Expand Up @@ -336,7 +336,7 @@ def main() -> None:
# special-case alias of "jupyter help" to "jupyter --help"
if subcommand == "help":
return
sys.exit(e)
sys.exit(str(e))

try:
_execvp(command, [command] + sys.argv[2:])
Expand Down

0 comments on commit 4a6b035

Please sign in to comment.