diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9fc6fdc..c610513 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,13 +4,13 @@ ci: repos: - repo: https://github.com/adamchainz/blacken-docs - rev: "1.16.0" + rev: "1.20.0" hooks: - id: blacken-docs additional_dependencies: [black==24.*] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.6.0" + rev: "v6.0.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -33,21 +33,21 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" + rev: "v4.0.0-alpha.8" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] args: [--prose-wrap=always] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.1" + rev: "v0.15.12" hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.9.0" + rev: "v1.20.2" hooks: - id: mypy files: src|tests @@ -56,12 +56,12 @@ repos: - pytest - repo: https://github.com/codespell-project/codespell - rev: "v2.2.6" + rev: "v2.4.2" hooks: - id: codespell - repo: https://github.com/shellcheck-py/shellcheck-py - rev: "v0.10.0.1" + rev: "v0.11.0.1" hooks: - id: shellcheck @@ -74,13 +74,13 @@ repos: exclude: .pre-commit-config.yaml - repo: https://github.com/abravalheri/validate-pyproject - rev: "v0.16" + rev: "v0.25" hooks: - id: validate-pyproject additional_dependencies: ["validate-pyproject-schema-store[all]"] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.28.2" + rev: "0.37.2" hooks: - id: check-dependabot - id: check-github-workflows diff --git a/README.md b/README.md index 32dd9f3..dc5e8a8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # 👷 🚧 This package is in its early development stages. It is not yet ready for public use. 🚧 # pydcmqi + [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/QIICR/pydcmqi/main.svg)](https://results.pre-commit.ci/latest/github/QIICR/pydcmqi/main) [![Actions Status][actions-badge]][actions-link] diff --git a/src/pydcmqi/segimage.py b/src/pydcmqi/segimage.py index 5dc3d83..e9592a6 100644 --- a/src/pydcmqi/segimage.py +++ b/src/pydcmqi/segimage.py @@ -653,7 +653,7 @@ def _import( # load each segmentation as item for i, s in enumerate(self._config["segmentAttributes"]): # find generated export file - f = output_dir / f"pydcmqi-{i+1}.nii.gz" + f = output_dir / f"pydcmqi-{i + 1}.nii.gz" # load all configs from segment definition for config in s: diff --git a/tests/test_segimage.py b/tests/test_segimage.py index 6694b57..50e5f1a 100644 --- a/tests/test_segimage.py +++ b/tests/test_segimage.py @@ -134,7 +134,6 @@ def test_verbosity_default_global_override(self): segimg1 = SegImage() segimg2 = SegImage(verbose=False) - # assert SegImage.verbose assert segimg1.verbose assert not segimg2.verbose @@ -143,7 +142,6 @@ def test_verbosity_instance_override(self): # initialize segimg = SegImage(verbose=True) - # assert not SegImage.verbose assert segimg.verbose