From 745fe88acc0c0d9a02312a216b5a1964d41755bc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:35:22 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7f280f..eb0d89f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black files: ^src/ From d01b1fd110827fef799683dc55aa200d5d0c8d19 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:35:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/probeinterface/generator.py | 1 + src/probeinterface/io.py | 1 + src/probeinterface/library.py | 1 + src/probeinterface/plotting.py | 1 + src/probeinterface/utils.py | 1 + src/probeinterface/wiring.py | 1 + 6 files changed, 6 insertions(+) diff --git a/src/probeinterface/generator.py b/src/probeinterface/generator.py index d363beb..95b3b1c 100644 --- a/src/probeinterface/generator.py +++ b/src/probeinterface/generator.py @@ -2,6 +2,7 @@ This module contains useful helper functions for generating probes. """ + from __future__ import annotations import numpy as np diff --git a/src/probeinterface/io.py b/src/probeinterface/io.py index fa170a5..7aa2c5b 100644 --- a/src/probeinterface/io.py +++ b/src/probeinterface/io.py @@ -9,6 +9,7 @@ * Neurodata Without Borders (.nwb) """ + from __future__ import annotations from pathlib import Path from typing import Union, Optional diff --git a/src/probeinterface/library.py b/src/probeinterface/library.py index 2374c3c..04e3442 100644 --- a/src/probeinterface/library.py +++ b/src/probeinterface/library.py @@ -8,6 +8,7 @@ The gin platform enables contributions from users. """ + from __future__ import annotations import os from pathlib import Path diff --git a/src/probeinterface/plotting.py b/src/probeinterface/plotting.py index 999a3fa..fea326c 100644 --- a/src/probeinterface/plotting.py +++ b/src/probeinterface/plotting.py @@ -4,6 +4,7 @@ Depending on Probe.ndim, the plotting is done in 2D or 3D """ + from __future__ import annotations import numpy as np from matplotlib import path as mpl_path diff --git a/src/probeinterface/utils.py b/src/probeinterface/utils.py index 35b1411..a9be5ba 100644 --- a/src/probeinterface/utils.py +++ b/src/probeinterface/utils.py @@ -1,6 +1,7 @@ """ Some utility functions """ + from __future__ import annotations from importlib import import_module from types import ModuleType diff --git a/src/probeinterface/wiring.py b/src/probeinterface/wiring.py index cdd51b7..1d0a691 100644 --- a/src/probeinterface/wiring.py +++ b/src/probeinterface/wiring.py @@ -1,6 +1,7 @@ """ Automatically set the `Probe.device_channel_indices` field. """ + from __future__ import annotations import numpy as np