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
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/pydcmqi/segimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions tests/test_segimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -143,7 +142,6 @@ def test_verbosity_instance_override(self):
# initialize
segimg = SegImage(verbose=True)

#
assert not SegImage.verbose
assert segimg.verbose

Expand Down
Loading