Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#7181)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 → v4.4.0](pre-commit/pre-commit-hooks@f71fa2c...v4.4.0)
- [github.com/pre-commit/mirrors-prettier: 50c5478ed9e10bf360335449280cf2a67f4edb7a → v3.0.3](pre-commit/mirrors-prettier@50c5478...v3.0.3)
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: f6346ef27faac608d493bf3926528b308d175d9e → v0.0.292](astral-sh/ruff-pre-commit@f6346ef...v0.0.292)
- [github.com/MarcoGorelli/cython-lint: ee720d6332a996d755b8919de55fc75d408be768 → v0.15.0](MarcoGorelli/cython-lint@ee720d6...v0.15.0)

* '[pre-commit.ci 🤖] Apply code format tools to PR'

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarrod Millman <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jarrodmillman authored Oct 5, 2023
1 parent 9ac2682 commit 93b1b8c
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # v4.4.0
rev: v4.4.0 # v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -16,20 +16,20 @@ repos:
- id: check-added-large-files

- repo: https://github.com/pre-commit/mirrors-prettier
rev: 50c5478ed9e10bf360335449280cf2a67f4edb7a # v2.7.1
rev: v3.0.3 # v2.7.1
hooks:
- id: prettier
files: \.(md|rst|yml|yaml)
args: [--prose-wrap=preserve]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: f6346ef27faac608d493bf3926528b308d175d9e # v0.0.261
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292 # v0.0.261
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/MarcoGorelli/cython-lint
rev: ee720d6332a996d755b8919de55fc75d408be768 # v0.15.0
rev: v0.15.0 # v0.15.0
hooks:
- id: cython-lint
args: [--no-pycodestyle, --max-line-length=88]
Expand Down
2 changes: 1 addition & 1 deletion skimage/_shared/tests/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_skipper():
def f():
pass

class c():
class c:

def __init__(self):
self.me = "I think, therefore..."
Expand Down
2 changes: 1 addition & 1 deletion skimage/color/tests/test_colorconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from numpy.exceptions import AxisError


class TestColorconv():
class TestColorconv:

img_rgb = data.colorwheel()
img_grayscale = data.camera()
Expand Down
4 changes: 2 additions & 2 deletions skimage/feature/tests/test_peak.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
np.random.seed(21)


class TestPeakLocalMax():
class TestPeakLocalMax:
def test_trivial_case(self):
trivial = np.zeros((25, 25))
peak_indices = peak.peak_local_max(trivial, min_distance=1)
Expand Down Expand Up @@ -498,7 +498,7 @@ def test_input_values_with_labels():
assert_array_equal(img, img_before)


class TestProminentPeaks():
class TestProminentPeaks:
def test_isolated_peaks(self):
image = np.zeros((15, 15))
x0, y0, i0 = (12, 8, 1)
Expand Down
6 changes: 3 additions & 3 deletions skimage/feature/tests/test_texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from skimage.transform import integral_image


class TestGLCM():
class TestGLCM:

def setup_method(self):
self.image = np.array([[0, 0, 1, 1],
Expand Down Expand Up @@ -203,7 +203,7 @@ def test_uniform_properties(self):
graycoprops(result, prop)


class TestLBP():
class TestLBP:

def setup_method(self):
self.image = np.array([[255, 6, 255, 0, 141, 0],
Expand Down Expand Up @@ -295,7 +295,7 @@ def test_nri_uniform(self):
np.testing.assert_array_almost_equal(lbp, ref)


class TestMBLBP():
class TestMBLBP:

def test_single_mblbp(self):

Expand Down
2 changes: 1 addition & 1 deletion skimage/filters/tests/test_thresholding.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
try_all_threshold)


class TestSimpleImage():
class TestSimpleImage:
def setup_method(self):
self.image = np.array([[0, 0, 1, 3, 5],
[0, 1, 4, 3, 4],
Expand Down
2 changes: 1 addition & 1 deletion skimage/io/tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_imagecollection_input():
assert len(images) == 3


class TestImageCollection():
class TestImageCollection:
pics = [
fetch('data/brick.png'),
fetch('data/color.png'),
Expand Down
2 changes: 1 addition & 1 deletion skimage/measure/tests/test_pnpoly.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from skimage._shared.testing import assert_array_equal


class TestNpnpoly():
class TestNpnpoly:
def test_square(self):
v = np.array([[0, 0],
[0, 1],
Expand Down
2 changes: 1 addition & 1 deletion skimage/morphology/tests/test_extrema.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def diff(a, b):
return math.sqrt(t)


class TestExtrema():
class TestExtrema:

def test_saturated_arithmetic(self):
"""Adding/subtracting a constant and clipping"""
Expand Down
4 changes: 2 additions & 2 deletions skimage/morphology/tests/test_gray.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def cell3d_image():
return np.ascontiguousarray(data.cells3d()[30:48, 0, 20:36, 20:32])


class TestMorphology():
class TestMorphology:

# These expected outputs were generated with skimage v0.12.1
# using:
Expand Down Expand Up @@ -56,7 +56,7 @@ def test_gray_morphology(self):
assert_equal(expected, calculated)


class TestEccentricStructuringElements():
class TestEccentricStructuringElements:
def setup_class(self):
self.black_pixel = 255 * np.ones((4, 4), dtype=np.uint8)
self.black_pixel[1, 1] = 0
Expand Down
6 changes: 3 additions & 3 deletions skimage/morphology/tests/test_skeletonize.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
_generate_thin_luts)


class TestSkeletonize():
class TestSkeletonize:
def test_skeletonize_no_foreground(self):
im = np.zeros((5, 5))
result = skeletonize(im)
Expand Down Expand Up @@ -110,7 +110,7 @@ def test_lut_fix(self):
assert np.all(result == expected)


class TestThin():
class TestThin:
@property
def input_image(self):
"""image to test thinning with"""
Expand Down Expand Up @@ -160,7 +160,7 @@ def test_lut_generation(self):
assert_array_equal(g123p, G123P_LUT)


class TestMedialAxis():
class TestMedialAxis:
def test_00_00_zeros(self):
'''Test skeletonize on an array of all zeros'''
result = medial_axis(np.zeros((10, 10), bool))
Expand Down

0 comments on commit 93b1b8c

Please sign in to comment.