Skip to content

Commit

Permalink
fix(ruff): file reformatting to pass ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoDelatte committed Mar 9, 2024
1 parent 4b31e7d commit f7a34b5
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/skfolio/distance/_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause


import numpy as np
import numpy.typing as npt
import pandas as pd
Expand Down
1 change: 0 additions & 1 deletion src/skfolio/measures/_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Gini mean difference and OWA GMD weights features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.


import numpy as np
import scipy.optimize as sco

Expand Down
1 change: 0 additions & 1 deletion src/skfolio/optimization/cluster/hierarchical/_hrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# The risk measure generalization and constraint features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.


import numpy as np
import numpy.typing as npt
import pandas as pd
Expand Down
6 changes: 3 additions & 3 deletions src/skfolio/optimization/convex/_mean_risk.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,9 +889,9 @@ def fit(self, X: npt.ArrayLike, y: npt.ArrayLike | None = None) -> "MeanRisk":
self.covariance_uncertainty_set_estimator
)
self.covariance_uncertainty_set_estimator_.fit(X, y)
args[
arg_name
] = self.covariance_uncertainty_set_estimator_.uncertainty_set_
args[arg_name] = (
self.covariance_uncertainty_set_estimator_.uncertainty_set_
)
else:
args[arg_name] = getattr(self, arg_name)

Expand Down
2 changes: 1 addition & 1 deletion src/skfolio/population/_population.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Population module.
"""Population module.
A population is a collection of portfolios.
"""

Expand Down
1 change: 0 additions & 1 deletion src/skfolio/portfolio/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
# the class attributes with the argument name preceded by the measure name and
# separated by '_'.


import warnings
from abc import abstractmethod
from typing import ClassVar
Expand Down
1 change: 0 additions & 1 deletion src/skfolio/portfolio/_portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause


import numbers
from typing import ClassVar

Expand Down

0 comments on commit f7a34b5

Please sign in to comment.