Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.13](astral-sh/ruff-pre-commit@v0.1.11...v0.1.13)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored and eddiebergman committed Jan 18, 2024
1 parent c93b022 commit a7cb9a5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ files: |
)/.*\.py$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.1.13
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --no-cache]
Expand Down
2 changes: 1 addition & 1 deletion openml/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __repr__(self) -> str:

@property
@abstractmethod
def id(self) -> int | None: # noqa: A003
def id(self) -> int | None:
"""The id of the entity, it is unique for its entity type."""

@property
Expand Down
2 changes: 1 addition & 1 deletion openml/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def qualities(self) -> dict[str, float] | None:
return self._qualities

@property
def id(self) -> int | None: # noqa: A003
def id(self) -> int | None:
"""Get the dataset numeric id."""
return self.dataset_id

Expand Down
2 changes: 1 addition & 1 deletion openml/flows/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__( # noqa: PLR0913
self._extension = extension

@property
def id(self) -> int | None: # noqa: A003
def id(self) -> int | None:
"""The ID of the flow."""
return self.flow_id

Expand Down
2 changes: 1 addition & 1 deletion openml/runs/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def predictions(self) -> pd.DataFrame:
return self._predictions

@property
def id(self) -> int | None: # noqa: A003
def id(self) -> int | None:
"""The ID of the run, None if not uploaded to the server yet."""
return self.run_id

Expand Down
2 changes: 1 addition & 1 deletion openml/study/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _entity_letter(cls) -> str:
return "s"

@property
def id(self) -> int | None: # noqa: A003
def id(self) -> int | None:
"""Return the id of the study."""
return self.study_id

Expand Down
2 changes: 1 addition & 1 deletion openml/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _entity_letter(cls) -> str:
return "t"

@property
def id(self) -> int | None: # noqa: A003
def id(self) -> int | None:
"""Return the OpenML ID of this task."""
return self.task_id

Expand Down

0 comments on commit a7cb9a5

Please sign in to comment.