diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed6f775..e1cdcb1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -11,15 +11,15 @@ repos: - id: check-case-conflict - id: check-merge-conflict - repo: https://github.com/psf/black - rev: 23.10.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.1.1 hooks: - id: flake8 - repo: https://github.com/pycqa/pydocstyle diff --git a/phys2denoise/metrics/__init__.py b/phys2denoise/metrics/__init__.py index 57eeef1..71e03dc 100644 --- a/phys2denoise/metrics/__init__.py +++ b/phys2denoise/metrics/__init__.py @@ -1,4 +1,5 @@ """Metrics derived from physiological signals.""" + from .cardiac import cardiac_phase, heart_beat_interval, heart_rate_variability from .chest_belt import ( env, diff --git a/phys2denoise/metrics/cardiac.py b/phys2denoise/metrics/cardiac.py index 5b7588d..7c87dc1 100644 --- a/phys2denoise/metrics/cardiac.py +++ b/phys2denoise/metrics/cardiac.py @@ -1,4 +1,5 @@ """Denoising metrics for cardio recordings.""" + import numpy as np from loguru import logger from physutils import io, physio diff --git a/phys2denoise/metrics/chest_belt.py b/phys2denoise/metrics/chest_belt.py index 4e080fc..6551c57 100644 --- a/phys2denoise/metrics/chest_belt.py +++ b/phys2denoise/metrics/chest_belt.py @@ -1,4 +1,5 @@ """Denoising metrics for chest belt recordings.""" + import numpy as np import pandas as pd from physutils import io, physio diff --git a/phys2denoise/metrics/responses.py b/phys2denoise/metrics/responses.py index 1a2aeee..ad14e8c 100644 --- a/phys2denoise/metrics/responses.py +++ b/phys2denoise/metrics/responses.py @@ -1,4 +1,5 @@ """Miscellaneous utility functions for metric calculation.""" + import logging import numpy as np diff --git a/phys2denoise/metrics/utils.py b/phys2denoise/metrics/utils.py index e21a085..6d2e53e 100644 --- a/phys2denoise/metrics/utils.py +++ b/phys2denoise/metrics/utils.py @@ -1,4 +1,5 @@ """Miscellaneous utility functions for metric calculation.""" + import functools import inspect import logging diff --git a/phys2denoise/references.py b/phys2denoise/references.py index cb01db5..98dc75a 100644 --- a/phys2denoise/references.py +++ b/phys2denoise/references.py @@ -1,4 +1,5 @@ """References to be imported and injected throughout the package.""" + from .due import Doi BIRN_2006 = Doi("10.1016/j.neuroimage.2006.02.048") diff --git a/phys2denoise/tests/test_metrics_cardiac.py b/phys2denoise/tests/test_metrics_cardiac.py index 2d776cf..a6c55a5 100644 --- a/phys2denoise/tests/test_metrics_cardiac.py +++ b/phys2denoise/tests/test_metrics_cardiac.py @@ -1,4 +1,5 @@ """Tests for phys2denoise.metrics.cardiac.""" + import numpy as np from loguru import logger from physutils import physio diff --git a/phys2denoise/tests/test_metrics_chest_belt.py b/phys2denoise/tests/test_metrics_chest_belt.py index a4257ec..6e352e3 100644 --- a/phys2denoise/tests/test_metrics_chest_belt.py +++ b/phys2denoise/tests/test_metrics_chest_belt.py @@ -1,4 +1,5 @@ """Tests for phys2denoise.metrics.chest_belt.""" + import numpy as np from pytest import mark