diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3a3e70f..e238553 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ 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 @@ -12,7 +12,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.5 + rev: v0.4.9 hooks: # Run the linter. - id: ruff @@ -21,6 +21,6 @@ repos: - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.950 + rev: v1.10.0 hooks: - id: mypy diff --git a/src/mps/czifile.py b/src/mps/czifile.py index 4eae7f6..3198ff2 100644 --- a/src/mps/czifile.py +++ b/src/mps/czifile.py @@ -110,6 +110,7 @@ array([10, 10, 10], dtype=uint8) """ + from __future__ import division from __future__ import print_function diff --git a/src/mps/nd2file.py b/src/mps/nd2file.py index db85381..4fc7865 100644 --- a/src/mps/nd2file.py +++ b/src/mps/nd2file.py @@ -30,6 +30,7 @@ There are some heuristics for parsing files, so that even broken files (i.e. due to a crashed NIS instance) have a possibility to open. """ + from __future__ import division from __future__ import print_function from __future__ import unicode_literals diff --git a/src/mps/scripts/analyze.py b/src/mps/scripts/analyze.py index 7eaf45b..5824595 100644 --- a/src/mps/scripts/analyze.py +++ b/src/mps/scripts/analyze.py @@ -1,6 +1,7 @@ """ Analyze flourecense data """ + import datetime import json import logging diff --git a/src/mps/scripts/mps2mp4.py b/src/mps/scripts/mps2mp4.py index 97d18ba..4c9d37c 100644 --- a/src/mps/scripts/mps2mp4.py +++ b/src/mps/scripts/mps2mp4.py @@ -1,6 +1,7 @@ """ Create movie of data file """ + import logging from pathlib import Path from typing import Optional diff --git a/src/mps/scripts/phase_plot.py b/src/mps/scripts/phase_plot.py index 6df8b77..89f2f72 100644 --- a/src/mps/scripts/phase_plot.py +++ b/src/mps/scripts/phase_plot.py @@ -1,6 +1,7 @@ """ Make a phase plot with voltage on the x-axis and calcium on the y-axis.""" + import logging from pathlib import Path from typing import Optional diff --git a/src/mps/scripts/split_pacing.py b/src/mps/scripts/split_pacing.py index 8ed4ca9..606f8e9 100644 --- a/src/mps/scripts/split_pacing.py +++ b/src/mps/scripts/split_pacing.py @@ -2,6 +2,7 @@ Run script on a folder with files and this will copy the files into folders with the same pacing frequency """ + import logging import shutil from pathlib import Path diff --git a/src/mps/scripts/summary.py b/src/mps/scripts/summary.py index fd50f2d..7e3566c 100644 --- a/src/mps/scripts/summary.py +++ b/src/mps/scripts/summary.py @@ -1,6 +1,7 @@ """ Create a summary pdf of all files in the a directory. """ + import logging import shutil from pathlib import Path diff --git a/src/mps/tifffile.py b/src/mps/tifffile.py index 79b8e9b..a502e7c 100644 --- a/src/mps/tifffile.py +++ b/src/mps/tifffile.py @@ -352,6 +352,7 @@ ... image = page.asarray() """ + from __future__ import division from __future__ import print_function