Skip to content
Open
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ files: |
)/.*\.py$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.16.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --no-cache]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v2.3.0
hooks:
- id: mypy
additional_dependencies:
- types-requests
- types-python-dateutil
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
rev: 0.37.4
hooks:
- id: check-github-workflows
files: '^github/workflows/.*\.ya?ml$'
types: ["yaml"]
- id: check-dependabot
files: '^\.github/dependabot\.ya?ml$'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
files: ".*"
Expand Down
2 changes: 1 addition & 1 deletion openml/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def autocomplete_policy(policy: str) -> str:

def configure_field( # noqa: PLR0913
field: str,
value: None | str,
value: str | None,
check_with_message: Callable[[str], str],
intro_message: str,
input_message: str,
Expand Down
2 changes: 1 addition & 1 deletion openml/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def _load_qualities(self) -> None:
else:
self._qualities = _read_qualities(qualities_file)

def retrieve_class_labels(self, target_name: str = "class") -> None | list[str]:
def retrieve_class_labels(self, target_name: str = "class") -> list[str] | None:
"""Reads the datasets arff to determine the class-labels.

If the task has no class labels (for example a regression problem)
Expand Down
Loading