Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,27 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/pycqa/isort
rev: 6.1.0
rev: 7.0.0
hooks:
- id: isort
name: isort (python)
args: ["--line-length=120", "--profile=black"]

- repo: https://github.com/pycqa/isort
rev: 6.1.0
rev: 7.0.0
hooks:
- id: isort
name: isort (python) (check)
args: ["--line-length=120", "--profile=black", "--check"]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
rev: 25.12.0
hooks:
- id: black
args: ["--line-length=120"]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
rev: 25.12.0
hooks:
- id: black
name: black (check)
Expand All @@ -66,14 +66,14 @@ repos:
args: ["--count", "--statistics", "--config=setup.cfg"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
rev: v1.19.1
hooks:
- id: mypy
exclude: (^tests/|^plugins/)
additional_dependencies: [types-PyYAML,types-filelock,types-requests,types-docutils,types-cachetools]

- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py37-plus]
3 changes: 1 addition & 2 deletions monailabel/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=
print(f"unable to find command, tried {commands}")
return None, None
stdout = p.communicate()[0].strip()
if sys.version_info[0] >= 3:
stdout = stdout.decode()
stdout = stdout.decode()
if p.returncode != 0:
if verbose:
print("unable to run %s (error)" % dispcmd)
Expand Down
Loading