Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#195)
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: Frédéric Collonval <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and fcollonval authored May 6, 2023
1 parent fd02d79 commit bcd7e06
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/check-links/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/pr-script/pr_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit bcd7e06

Please sign in to comment.