diff --git a/src/actigraphy/__main__.py b/src/actigraphy/__main__.py index 7552b16..98a3ed6 100644 --- a/src/actigraphy/__main__.py +++ b/src/actigraphy/__main__.py @@ -1,4 +1,5 @@ """Entrypoints for the Actigraphy app.""" + import logging from actigraphy import app diff --git a/src/actigraphy/app.py b/src/actigraphy/app.py index 55a82aa..2497fe1 100644 --- a/src/actigraphy/app.py +++ b/src/actigraphy/app.py @@ -1,4 +1,5 @@ """Main app setup for the Actigraphy app.""" + import logging import dash diff --git a/src/actigraphy/components/app_license.py b/src/actigraphy/components/app_license.py index 654adef..ce0f1a7 100644 --- a/src/actigraphy/components/app_license.py +++ b/src/actigraphy/components/app_license.py @@ -1,4 +1,5 @@ """License information for the application.""" + from dash import html diff --git a/src/actigraphy/components/day_slider.py b/src/actigraphy/components/day_slider.py index 7fc5e40..090cc44 100644 --- a/src/actigraphy/components/day_slider.py +++ b/src/actigraphy/components/day_slider.py @@ -1,4 +1,5 @@ """Dash HTML div for a slider component for selecting days.""" + import datetime import itertools import logging diff --git a/src/actigraphy/components/file_selection.py b/src/actigraphy/components/file_selection.py index daa3ffb..4a1a6bb 100644 --- a/src/actigraphy/components/file_selection.py +++ b/src/actigraphy/components/file_selection.py @@ -3,6 +3,7 @@ The file selection component contains an input box for the evaluator's name, and dropdown menu for selecting a subject. """ + import logging import dash diff --git a/src/actigraphy/components/finished_checkbox.py b/src/actigraphy/components/finished_checkbox.py index 49fefc1..6a32c0d 100644 --- a/src/actigraphy/components/finished_checkbox.py +++ b/src/actigraphy/components/finished_checkbox.py @@ -3,6 +3,7 @@ The checklist allows the user to indicate whether they are done with the current participant and would like to proceed to the next one. """ + import logging import dash diff --git a/src/actigraphy/components/graph.py b/src/actigraphy/components/graph.py index 227134e..59db2f7 100644 --- a/src/actigraphy/components/graph.py +++ b/src/actigraphy/components/graph.py @@ -4,6 +4,7 @@ app. The graph displays the sensor angle and arm movement data for a given day. The range slider is used to select a sleep window for the given day. """ + import datetime import json import logging diff --git a/src/actigraphy/components/switches.py b/src/actigraphy/components/switches.py index f1a0eb5..ee6725b 100644 --- a/src/actigraphy/components/switches.py +++ b/src/actigraphy/components/switches.py @@ -7,6 +7,7 @@ The third switch is used to indicate whether the user needs to review the sleep data for a particular night. """ + import logging import dash diff --git a/src/actigraphy/components/utils.py b/src/actigraphy/components/utils.py index 922e861..8dbaadb 100644 --- a/src/actigraphy/components/utils.py +++ b/src/actigraphy/components/utils.py @@ -1,4 +1,5 @@ """Utility functions used across components.""" + import datetime import functools import logging diff --git a/src/actigraphy/core/callback_manager.py b/src/actigraphy/core/callback_manager.py index 05bc0ee..2331941 100644 --- a/src/actigraphy/core/callback_manager.py +++ b/src/actigraphy/core/callback_manager.py @@ -7,6 +7,7 @@ At the bottom of this file, the global_manager object is created. This object is used to register callbacks across multiple files. """ + import dataclasses import inspect import logging diff --git a/src/actigraphy/core/cli.py b/src/actigraphy/core/cli.py index a90572f..1eacec2 100644 --- a/src/actigraphy/core/cli.py +++ b/src/actigraphy/core/cli.py @@ -1,4 +1,5 @@ """Command line interface for the actigraphy APP.""" + import argparse import logging import pathlib diff --git a/src/actigraphy/core/config.py b/src/actigraphy/core/config.py index b794851..d75d528 100644 --- a/src/actigraphy/core/config.py +++ b/src/actigraphy/core/config.py @@ -1,4 +1,5 @@ """Contains the app settings.""" + import datetime import functools import logging diff --git a/src/actigraphy/core/exceptions.py b/src/actigraphy/core/exceptions.py index 67e138f..41a7303 100644 --- a/src/actigraphy/core/exceptions.py +++ b/src/actigraphy/core/exceptions.py @@ -1,4 +1,5 @@ """Exceptions for actigraphy.""" + import logging from typing import Any diff --git a/src/actigraphy/core/utils.py b/src/actigraphy/core/utils.py index 30e6375..50bd334 100644 --- a/src/actigraphy/core/utils.py +++ b/src/actigraphy/core/utils.py @@ -1,4 +1,5 @@ """Utility functions for the actigraphy package.""" + import datetime import logging import os diff --git a/src/actigraphy/database/crud.py b/src/actigraphy/database/crud.py index bc3bc2a..3ddab08 100644 --- a/src/actigraphy/database/crud.py +++ b/src/actigraphy/database/crud.py @@ -1,4 +1,5 @@ """Standard CRUD operations for the database.""" + from sqlalchemy import orm from actigraphy.core import exceptions diff --git a/src/actigraphy/database/database.py b/src/actigraphy/database/database.py index cf1c8d7..6945549 100644 --- a/src/actigraphy/database/database.py +++ b/src/actigraphy/database/database.py @@ -1,4 +1,5 @@ """A module for interacting with the SQL database.""" + import logging import pathlib from collections import abc diff --git a/src/actigraphy/database/models.py b/src/actigraphy/database/models.py index 1ee5ee5..ca475a6 100644 --- a/src/actigraphy/database/models.py +++ b/src/actigraphy/database/models.py @@ -1,4 +1,5 @@ """Database models for the actigraphy database.""" + import datetime import sqlalchemy diff --git a/src/actigraphy/database/utils.py b/src/actigraphy/database/utils.py index 317b340..d027f68 100644 --- a/src/actigraphy/database/utils.py +++ b/src/actigraphy/database/utils.py @@ -1,4 +1,5 @@ """Standard CRUD operations for the database.""" + import datetime import logging import pathlib diff --git a/src/actigraphy/io/ggir_files.py b/src/actigraphy/io/ggir_files.py index e39d84b..30e2e1a 100644 --- a/src/actigraphy/io/ggir_files.py +++ b/src/actigraphy/io/ggir_files.py @@ -1,4 +1,5 @@ """Functions for reading and writing minor files to a format accepted by GGIR.""" + import csv import dataclasses import datetime diff --git a/src/actigraphy/io/preprocess.py b/src/actigraphy/io/preprocess.py index 3d3a86b..2d54d73 100644 --- a/src/actigraphy/io/preprocess.py +++ b/src/actigraphy/io/preprocess.py @@ -1,4 +1,5 @@ """Module for preprocessing actigraphy data.""" + import argparse import logging import pathlib diff --git a/src/actigraphy/plotting/sensor_plots.py b/src/actigraphy/plotting/sensor_plots.py index 521a9b4..4893b6a 100644 --- a/src/actigraphy/plotting/sensor_plots.py +++ b/src/actigraphy/plotting/sensor_plots.py @@ -1,4 +1,5 @@ """Module for all plotting functions.""" + import bisect import datetime import logging diff --git a/tests/conftest.py b/tests/conftest.py index 94aab1a..f456ee3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Pytest configuration file.""" + import datetime from collections.abc import Generator diff --git a/tests/unit/components/callback_test_manager.py b/tests/unit/components/callback_test_manager.py index eafc5ee..537ec8f 100644 --- a/tests/unit/components/callback_test_manager.py +++ b/tests/unit/components/callback_test_manager.py @@ -1,4 +1,5 @@ """Initialize the callback manager for unit tests.""" + from collections.abc import Callable from typing import Any diff --git a/tests/unit/components/test_finished_checkbox.py b/tests/unit/components/test_finished_checkbox.py index ff4956c..3fbf8a7 100644 --- a/tests/unit/components/test_finished_checkbox.py +++ b/tests/unit/components/test_finished_checkbox.py @@ -1,4 +1,5 @@ """Unit tests for the finished_checkbox module.""" + from sqlalchemy import orm from actigraphy.database import models diff --git a/tests/unit/test___main__.py b/tests/unit/test___main__.py index 0a10565..46019e9 100644 --- a/tests/unit/test___main__.py +++ b/tests/unit/test___main__.py @@ -1,4 +1,5 @@ """Unit tests for the __main__ module.""" + from pytest_mock import plugin from actigraphy import __main__ diff --git a/tests/unit/test_app.py b/tests/unit/test_app.py index 8ca0d98..9e4e831 100644 --- a/tests/unit/test_app.py +++ b/tests/unit/test_app.py @@ -1,4 +1,5 @@ """Unit tests for the app module.""" + from unittest import mock import dash_bootstrap_components diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index 14df682..bd3c4fc 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -1,4 +1,5 @@ """Tests for the cli module.""" + # pylint: disable=protected-access import argparse import logging diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index 1ec0287..d45b2f8 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -1,4 +1,5 @@ """Unit tests for the config module.""" + import logging from pytest_mock import plugin diff --git a/tests/unit/test_core_utils.py b/tests/unit/test_core_utils.py index 633974a..5ec7df4 100644 --- a/tests/unit/test_core_utils.py +++ b/tests/unit/test_core_utils.py @@ -1,4 +1,5 @@ """Tests the core utilities.""" + import datetime from actigraphy.core import utils diff --git a/tests/unit/test_database.py b/tests/unit/test_database.py index 57ae5fe..b6528b1 100644 --- a/tests/unit/test_database.py +++ b/tests/unit/test_database.py @@ -1,4 +1,5 @@ """Tests for the database module.""" + import sqlalchemy from actigraphy.database import database diff --git a/tests/unit/test_io.py b/tests/unit/test_io.py index c8fefd9..0184ce3 100644 --- a/tests/unit/test_io.py +++ b/tests/unit/test_io.py @@ -1,4 +1,5 @@ """Tests for the IO module.""" + # pylint: disable=protected-access from actigraphy.io import ggir_files diff --git a/tests/unit/test_minor_files.py b/tests/unit/test_minor_files.py index 531b834..eda5b6a 100644 --- a/tests/unit/test_minor_files.py +++ b/tests/unit/test_minor_files.py @@ -1,4 +1,5 @@ """Test the ggir_files module.""" + import pathlib from actigraphy.io import ggir_files diff --git a/tests/unit/test_models.py b/tests/unit/test_models.py index 9f2aa8d..c3e8acd 100644 --- a/tests/unit/test_models.py +++ b/tests/unit/test_models.py @@ -1,4 +1,5 @@ """Tests for the database models.""" + import datetime import pytest diff --git a/tests/unit/test_sensor_plots.py b/tests/unit/test_sensor_plots.py index ce2ba40..bb46561 100644 --- a/tests/unit/test_sensor_plots.py +++ b/tests/unit/test_sensor_plots.py @@ -1,4 +1,5 @@ """Unit tests for the plotting module.""" + import datetime from plotly import graph_objects