Skip to content

Commit a1b2b9e

Browse files
authored
Merge pull request #37 from ComputationalPhysiology/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents f661c51 + 8064a80 commit a1b2b9e

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
1414
# Ruff version.
15-
rev: v0.8.4
15+
rev: v0.9.1
1616
hooks:
1717
# Run the linter.
1818
- id: ruff
@@ -21,6 +21,6 @@ repos:
2121
- id: ruff-format
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.14.0
24+
rev: v1.14.1
2525
hooks:
2626
- id: mypy

src/mps/analysis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
ExcludedData = namedtuple(
8686
"ExcludedData",
87-
("new_data, included_indices, " "all_included_indices"),
87+
("new_data, included_indices, all_included_indices"),
8888
)
8989

9090

src/mps/load.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def __setstate__(self, state):
570570
self.__dict__.update(state)
571571

572572
def __repr__(self):
573-
return ("{self.__class__.__name__}" "({self._fname})").format(self=self)
573+
return ("{self.__class__.__name__}({self._fname})").format(self=self)
574574

575575
@property
576576
def name(self):

src/mps/plotter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
has_mpl = True
4747
except ImportError:
48-
logger.debug(("Unable to import matplotlib. " "Plotting will not be possible"))
48+
logger.debug(("Unable to import matplotlib. Plotting will not be possible"))
4949
has_mpl = False
5050
plt = None
5151

src/mps/scripts/summary.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def plot(
194194
"cAPD80 [ms]",
195195
"cAPD80 stdev",
196196
"cAPD80 #removed",
197-
"ratio APD30/APD80" "APD90 [ms]",
197+
"ratio APD30/APD80APD90 [ms]",
198198
"triangulation [ms]",
199199
"triangulation stdev",
200200
"APD90 [ms]",

src/mps/tifffile.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ def save(
10401040
photometric = RGB
10411041
if datadtypechar not in "B":
10421042
raise ValueError(
1043-
"ImageJ does not support data type %s " "for RGB" % datadtypechar,
1043+
"ImageJ does not support data type %s for RGB" % datadtypechar,
10441044
)
10451045
elif photometric is None:
10461046
photometric = MINISBLACK
@@ -4900,7 +4900,7 @@ def open(self):
49004900
pass
49014901
else:
49024902
raise ValueError(
4903-
"The first parameter must be a file name, " "seekable binary stream, or FileHandle",
4903+
"The first parameter must be a file name, seekable binary stream, or FileHandle",
49044904
)
49054905

49064906
if self._offset:
@@ -6301,14 +6301,14 @@ def FRAME_ATTRS():
63016301
def FILE_FLAGS():
63026302
# TiffFile and TiffPage 'is_\*' attributes
63036303
exclude = set(
6304-
"reduced final memmappable contiguous tiled " "chroma_subsampled".split(),
6304+
"reduced final memmappable contiguous tiled chroma_subsampled".split(),
63056305
)
63066306
return set(a[3:] for a in dir(TiffPage) if a[:3] == "is_" and a[3:] not in exclude)
63076307

63086308
def FILE_EXTENSIONS():
63096309
# TIFF file extensions
63106310
return tuple(
6311-
"tif tiff ome.tif lsm stk qptiff pcoraw " "gel seq svs bif tf8 tf2 btf".split(),
6311+
"tif tiff ome.tif lsm stk qptiff pcoraw gel seq svs bif tf8 tf2 btf".split(),
63126312
)
63136313

63146314
def FILEOPEN_FILTER():

src/mps/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
grid_settings = namedtuple(
5050
"grid_settings",
51-
("nx, ny, dx, dy, x_start," " y_start, x_end, y_end"),
51+
("nx, ny, dx, dy, x_start, y_start, x_end, y_end"),
5252
)
5353

5454
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)