Skip to content

Commit

Permalink
Use lowercase function names everywhere
Browse files Browse the repository at this point in the history
(also in tests)
  • Loading branch information
imagejan committed Jul 29, 2024
1 parent 1016841 commit 64fea52
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ source = "vcs"
ignore = ["FA100", "S101"]

[tool.ruff.lint.extend-per-file-ignores]
"**/tests/*" = ["F811", "INP001", "N802", "SLF001"]
"**/tests/*" = ["F811", "INP001", "SLF001"]
"**/examples/*" = ["INP001"]

[tool.setuptools_scm]
Expand Down
6 changes: 3 additions & 3 deletions tests/alignment/test_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def tiles() -> list[Tile]:
]


def test_StageAlignment(tiles):
def test_stage_alignment(tiles):
from faim_ipa.alignment import StageAlignment

alignment = StageAlignment(tiles)
Expand All @@ -53,7 +53,7 @@ def test_StageAlignment(tiles):
assert tile.position.x in [0, 511, 512, 522]


def test_GridAlignment(tiles):
def test_grid_alignment(tiles):
from faim_ipa.alignment import GridAlignment

alignment = GridAlignment(tiles)
Expand All @@ -68,7 +68,7 @@ def test_GridAlignment(tiles):
assert tile.position.x in [0, 512]


def test_AbstractAlignment(tiles):
def test_abstract_alignment(tiles):
from faim_ipa.alignment.alignment import AbstractAlignment

with pytest.raises(TypeError):
Expand Down
Empty file.
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/hcs/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from faim_ipa.stitching.tile import Tile, TilePosition


def test_NGFFPlate():
def test_ngff_plate():
root_dir = "/path/to/root_dir"
name = "plate_name"
layout = PlateLayout.I18
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/stitching/test_Tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_get_position():
assert tile.get_yx_position() == (2, 7)


def test_Tile_data_mask():
def test_tile_data_mask():
tile = Tile(
path="path",
shape=(10, 10),
Expand All @@ -106,7 +106,7 @@ def test_Tile_data_mask():
assert mask.all()


def test_CVStackedTile_data_mask():
def test_cellvoyager_data_mask():
from faim_ipa.hcs.cellvoyager.tile import StackedTile

tile = StackedTile(
Expand All @@ -123,7 +123,7 @@ def test_CVStackedTile_data_mask():
assert mask[2].all()


def test_VisiViewStackedTile_data_mask():
def test_visiview_data_mask():
from faim_ipa.visiview.acquisition import StackedTile

tile = StackedTile(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 64fea52

Please sign in to comment.