diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61b2b7c..4dc7d35 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: args: [--py37-plus, --add-import, from __future__ import annotations] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black args: [--config=pyproject.toml, --verbose] diff --git a/bidsmreye/__init__.py b/bidsmreye/__init__.py index a47f02a..48f5608 100644 --- a/bidsmreye/__init__.py +++ b/bidsmreye/__init__.py @@ -1,2 +1,3 @@ """Bidsmreye package.""" + from __future__ import annotations diff --git a/bidsmreye/defaults.py b/bidsmreye/defaults.py index 4388761..913cd4e 100644 --- a/bidsmreye/defaults.py +++ b/bidsmreye/defaults.py @@ -1,4 +1,5 @@ """Store defaults.""" + from __future__ import annotations diff --git a/bidsmreye/download.py b/bidsmreye/download.py index ccd1b3b..ab4ec93 100644 --- a/bidsmreye/download.py +++ b/bidsmreye/download.py @@ -1,4 +1,5 @@ """Download the models from OSF.""" + from __future__ import annotations import argparse diff --git a/bidsmreye/generalize.py b/bidsmreye/generalize.py index a1fcdf3..5998bba 100644 --- a/bidsmreye/generalize.py +++ b/bidsmreye/generalize.py @@ -1,4 +1,5 @@ """TODO.""" + from __future__ import annotations import logging diff --git a/bidsmreye/methods.py b/bidsmreye/methods.py index 8b46ebc..861c5c8 100644 --- a/bidsmreye/methods.py +++ b/bidsmreye/methods.py @@ -1,4 +1,5 @@ """Write method section.""" + from __future__ import annotations import shutil diff --git a/bidsmreye/prepare_data.py b/bidsmreye/prepare_data.py index 74870a2..3db27cc 100644 --- a/bidsmreye/prepare_data.py +++ b/bidsmreye/prepare_data.py @@ -1,4 +1,5 @@ """Run coregistration and extract data.""" + from __future__ import annotations import pickle diff --git a/bidsmreye/quality_control.py b/bidsmreye/quality_control.py index fb180a5..01f074a 100644 --- a/bidsmreye/quality_control.py +++ b/bidsmreye/quality_control.py @@ -1,4 +1,5 @@ """TODO.""" + from __future__ import annotations import json