From 2ad0423b8a7b1eb7f23192f07f7743a660ab71ba Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Fri, 13 Jan 2023 14:48:23 -0800 Subject: [PATCH] Update precommits (#37) --- .pre-commit-config.yaml | 4 ++-- devpy/cmds/util.py | 2 +- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9ea3652..d6a4a0f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black @@ -31,7 +31,7 @@ repos: args: [--prose-wrap=preserve] - repo: https://github.com/asottile/pyupgrade - rev: v3.1.0 + rev: v3.3.1 hooks: - id: pyupgrade args: [--py37-plus] diff --git a/devpy/cmds/util.py b/devpy/cmds/util.py index 9b53b3a..bac4da4 100644 --- a/devpy/cmds/util.py +++ b/devpy/cmds/util.py @@ -12,7 +12,7 @@ def run(cmd, cwd=None, replace=False, sys_exit=True, output=True, *args, **kwarg if cwd: click.secho(f"$ cd {cwd}", bold=True, fg="bright_blue") os.chdir(cwd) - cmdstr = ' '.join(shlex.quote(arg) for arg in cmd) + cmdstr = " ".join(shlex.quote(arg) for arg in cmd) click.secho(f"$ {cmdstr}", bold=True, fg="bright_blue") if output is False: diff --git a/pyproject.toml b/pyproject.toml index 68af90a..6879717 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ ] [project.optional-dependencies] -lint = ["pre-commit >= 2.20"] +lint = ["pre-commit >= 2.21"] [project.urls] homepage = "https://github.com/scientific-python/devpy"