Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.8.1"
rev: "v3.9.6"
hooks:
- id: prettier
types_or: [yaml]
args: [--prose-wrap=always]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.9"
rev: "v0.16.1"
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
- id: ruff-format

- repo: https://github.com/codespell-project/codespell
rev: "v2.4.2"
rev: "v2.4.3"
hooks:
- id: codespell
additional_dependencies:
Expand All @@ -88,20 +88,20 @@ repos:
additional_dependencies: ["validate-pyproject-schema-store[all]"]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.37.1"
rev: "0.37.4"
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.0
rev: v0.23.2
hooks:
- id: markdownlint-cli2
args: []

- repo: https://github.com/numpy/numpydoc
rev: v1.10.0
rev: v1.11.0rc0
hooks:
- id: numpydoc-validation
exclude: "notebooks/"
Expand Down
2 changes: 0 additions & 2 deletions src/afmslicer/_version.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
from __future__ import annotations

version: str
version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]
2 changes: 1 addition & 1 deletion src/afmslicer/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def afmslicer_parser() -> arg.ArgumentParser:

def entry_point(
manually_provided_args: list[Any] | None = None, testing: bool = False
) -> None | arg.Namespace:
) -> arg.Namespace | None:
"""
Entry point for all AFMSlicer programs.

Expand Down
2 changes: 1 addition & 1 deletion src/afmslicer/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def create_statistics_dictionary(


def calculate_pdf(
array: list[float], xmin: int | float | None = None, xmax: int | float | None = None
array: list[float], xmin: float | None = None, xmax: float | None = None
) -> dict[str, npt.NDArray]:
"""
Calculate the scaled probability density function for an array.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def test_AFMSlicer(
filename: str,
img_path: Path,
slices: int,
min_height: int | float,
max_height: int | float,
min_height: float,
max_height: float,
layers: npt.NDArray[np.float64],
pixel_to_nm_scaling: float,
request,
Expand Down Expand Up @@ -194,8 +194,8 @@ def test_slice_image(
filename: str,
img_path: Path,
slices: int,
min_height: int | float,
max_height: int | float,
min_height: float,
max_height: float,
layers: npt.NDArray[np.float64],
segment_method: str,
sliced_array_fixture: str,
Expand Down
Loading