Skip to content

Commit

Permalink
ci: pre-commit autoupdate (#984)
Browse files Browse the repository at this point in the history
* ci: pre-commit autoupdate

updates:
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.15.0](pre-commit/mirrors-mypy@v1.13.0...v1.15.0)
- [github.com/PyCQA/pylint: v3.3.4 → v3.3.5](pylint-dev/pylint@v3.3.4...v3.3.5)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel G. Krakowczyk <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and dkrako authored Mar 11, 2025
1 parent 53d818c commit ff76f47
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -68,7 +68,7 @@ repos:
- id: nbqa-pyupgrade
args: ["--py39-plus"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.15.0
hooks:
- id: mypy
additional_dependencies: [pandas-stubs, types-tqdm]
Expand Down Expand Up @@ -121,7 +121,7 @@ repos:
'--ignore=D103,D107,D213',
]
- repo: https://github.com/PyCQA/pylint
rev: v3.3.4
rev: v3.3.5
hooks:
- id: pylint
name: pylint
Expand Down
5 changes: 4 additions & 1 deletion src/pymovements/utils/archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ def _extract_tar(
verbose: int
Print messages for resuming each dataset resource.
"""
with tarfile.open(source_path, f'r:{compression[1:]}' if compression else 'r') as archive:
mode = f'r:{compression[1:]}' if compression else 'r'

# ignore mypy error for now, see issue #1020
with tarfile.open(source_path, mode) as archive: # type: ignore[call-overload]
for member in tqdm(archive.getmembers()):
if resume:
member_dest_path = os.path.join(destination_path, member.name)
Expand Down

0 comments on commit ff76f47

Please sign in to comment.