Skip to content

Commit

Permalink
ci: [pre-commit.ci] pre-commit autoupdate (#1216)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.9 →
v0.7.0](astral-sh/ruff-pre-commit@v0.6.9...v0.7.0)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 →
v1.12.1](pre-commit/mirrors-mypy@v1.11.2...v1.12.1)
<!--pre-commit.ci end-->

## Summary by Sourcery

CI:
- Update pre-commit hooks for 'ruff-pre-commit' from v0.6.9 to v0.7.0
and 'mirrors-mypy' from v1.11.2 to v1.12.1.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Bokota <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Czaki authored Oct 22, 2024
1 parent 4109490 commit bc5eabd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.7.0
hooks:
- id: ruff
- repo: https://github.com/pre-commit/pygrep-hooks
Expand All @@ -36,7 +36,7 @@ repos:
- mdformat-toc

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.2' # Use the sha / tag you want to point at
rev: 'v1.12.1' # Use the sha / tag you want to point at
hooks:
- id: mypy
files: ^package/PartSegImage/.+\.py
Expand Down
2 changes: 1 addition & 1 deletion build_utils/create_and_pack_executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def create_archive(working_dir):
file_path = get_file_path(working_dir)
if file_path.endswith(".zip"):
return zipfile.ZipFile(file_path, "w", zipfile.ZIP_DEFLATED)
arch_file = tarfile.open(file_path, "w:gz")
arch_file = tarfile.open(file_path, "w:gz") # noqa: SIM115
arch_file.write = arch_file.add
return arch_file

Expand Down

0 comments on commit bc5eabd

Please sign in to comment.