diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b62d60ac..f56d8274 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: exclude: ^\.bumpversion\.cfg$ - repo: https://github.com/python-jsonschema/check-jsonschema.git - rev: 0.37.4 + rev: 0.38.0 hooks: - id: check-github-actions - id: check-github-workflows @@ -72,7 +72,7 @@ repos: exclude: ^docs/_static/.*\.(js|html)$|^src/ridgeplot/.*\.c$ - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.11.0.1 + rev: v0.11.0.1-1 hooks: - id: shellcheck # Exclude zsh scripts (unsupported by shellcheck) @@ -92,7 +92,7 @@ repos: - mdformat-myst - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.25 + rev: '0.26' hooks: - id: validate-pyproject @@ -104,7 +104,7 @@ repos: additional_dependencies: [setuptools-scm] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.22 + rev: v0.16.4 hooks: - id: ruff-format - id: ruff diff --git a/src/ridgeplot/_figure_factory.py b/src/ridgeplot/_figure_factory.py index 16011810..5b170397 100644 --- a/src/ridgeplot/_figure_factory.py +++ b/src/ridgeplot/_figure_factory.py @@ -125,7 +125,7 @@ def create_ridgeplot( densities: Densities, trace_labels: LabelsArray | ShallowLabelsArray | None, trace_types: TraceTypesArray | ShallowTraceTypesArray | TraceType, - row_labels: Collection[str] | None | Literal[False], + row_labels: Collection[str] | Literal[False] | None, colorscale: ColorScale | Collection[Color] | str | None, colormode: Literal["fillgradient"] | SolidColormode, color_discrete_map: dict[str, str] | None, diff --git a/src/ridgeplot/_ridgeplot.py b/src/ridgeplot/_ridgeplot.py index 6bbbc185..dcbea49c 100644 --- a/src/ridgeplot/_ridgeplot.py +++ b/src/ridgeplot/_ridgeplot.py @@ -102,7 +102,7 @@ def ridgeplot( densities: Densities | ShallowDensities | None = None, trace_type: TraceTypesArray | ShallowTraceTypesArray | TraceType | None = None, labels: LabelsArray | ShallowLabelsArray | None = None, - row_labels: Collection[str] | None | Literal[False] = None, + row_labels: Collection[str] | Literal[False] | None = None, # KDE parameters kernel: str = "gau", bandwidth: KDEBandwidth = "normal_reference", @@ -123,7 +123,7 @@ def ridgeplot( xpad: float = 0.05, template: PlotlyTemplate | None = None, # Deprecated parameters - coloralpha: float | None | MissingType = MISSING, + coloralpha: float | MissingType | None = MISSING, linewidth: float | MissingType = MISSING, show_yticklabels: bool | MissingType = MISSING, ) -> go.Figure: