Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix isort failure in pre-commit hooks #994

Merged
merged 2 commits into from
Feb 20, 2023
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: black
additional_dependencies: [toml]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: [toml]
Expand Down
2 changes: 1 addition & 1 deletion cellrank/_utils/_lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def T(self):

@property
def nlin(self) -> int:
"""The number of lineages.""" # noqa: D401
"""The number of lineages."""
return self.shape[1]

@d.get_full_description(base="lin_pd")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def terminal_states(self) -> Optional[pd.Series]:
@property
@d.get_summary(base="tse_term_states_probs")
def terminal_states_probabilities(self) -> Optional[pd.Series]:
"""Aggregated probability of cells to be in terminal states.""" # noqa: D401
"""Aggregated probability of cells to be in terminal states."""
return self._term_states_probs

@d.dedent
Expand Down
8 changes: 4 additions & 4 deletions cellrank/models/_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def adata(self, adata: Optional[AnnData]) -> None:

@property
def shape(self) -> Tuple[int]:
"""Number of cells in :attr:`adata`.""" # noqa: D401
"""Number of cells in :attr:`adata`."""
return (self._n_obs,)

@property
Expand Down Expand Up @@ -267,19 +267,19 @@ def w_all(self) -> np.ndarray:
@property
@d.get_summary(base="base_model_x")
def x(self) -> np.ndarray:
"""Filtered independent variables of shape `(n_filtered_cells, 1)` used for fitting.""" # noqa
"""Filtered independent variables of shape `(n_filtered_cells, 1)` used for fitting."""
return self._x

@property
@d.get_summary(base="base_model_y")
def y(self) -> np.ndarray:
"""Filtered dependent variables of shape `(n_filtered_cells, 1)` used for fitting.""" # noqa
"""Filtered dependent variables of shape `(n_filtered_cells, 1)` used for fitting."""
return self._y

@property
@d.get_summary(base="base_model_w")
def w(self) -> np.ndarray:
"""Filtered weights of shape `(n_filtered_cells,)` used for fitting.""" # noqa
"""Filtered weights of shape `(n_filtered_cells,)` used for fitting."""
return self._w

@property
Expand Down
2 changes: 1 addition & 1 deletion cellrank/models/_sklearn_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _find_arg_name(

@property
def model(self) -> BaseEstimator:
"""The underlying :class:`sklearn.base.BaseEstimator`.""" # noqa
"""The underlying :class:`sklearn.base.BaseEstimator`."""
return self._model

@d.dedent
Expand Down