From bcd7e06c40e8775c3e7c8ec2cb7810837b7dbb35 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 6 May 2023 08:41:12 -0500 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#195) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Frédéric Collonval --- .github/actions/check-links/check_links.py | 4 ++-- .github/actions/pr-script/pr_script.py | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/check-links/check_links.py b/.github/actions/check-links/check_links.py index 94e7860..6e2f059 100644 --- a/.github/actions/check-links/check_links.py +++ b/.github/actions/check-links/check_links.py @@ -59,13 +59,13 @@ def check_links(ignore_glob, ignore_links, links_expire): file_cmd = shlex.split(file_cmd) try: log(f"{separator}{f}...") - subprocess.check_output(file_cmd, shell=False) + subprocess.check_output(file_cmd, shell=False) # noqa S603 except Exception as e: # Return code 5 means no tests were run (no links found) if e.returncode != 5: # type:ignore[attr-defined] # noqa try: log(f"\n{f} (second attempt)...\n") - subprocess.check_output([*file_cmd, "--lf"], shell=False) + subprocess.check_output([*file_cmd, "--lf"], shell=False) # noqa S603 except subprocess.CalledProcessError as e: log(e.output.decode("utf-8")) fails += 1 diff --git a/.github/actions/pr-script/pr_script.py b/.github/actions/pr-script/pr_script.py index 4d17ab3..0960413 100644 --- a/.github/actions/pr-script/pr_script.py +++ b/.github/actions/pr-script/pr_script.py @@ -28,7 +28,7 @@ def run(cmd, **kwargs): parts[0] = executable try: - return check_output(parts, **kwargs).decode("utf-8").strip() + return check_output(parts, **kwargs).decode("utf-8").strip() # noqa S603 except CalledProcessError as e: print("output:", e.output.decode("utf-8").strip()) if e.stderr: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d6499c9..9443cd9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.260 + rev: v0.0.263 hooks: - id: ruff args: ["--fix"] diff --git a/pyproject.toml b/pyproject.toml index 8413116..fe5d86a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = ["mypy>=0.990"] test = "mypy --install-types --non-interactive {args:.}" [tool.hatch.envs.lint] -dependencies = ["black==23.1.0", "mdformat>0.7", "ruff==0.0.254"] +dependencies = ["black==23.1.0", "mdformat>0.7", "ruff==0.0.263"] detached = true [tool.hatch.envs.lint.scripts] style = [