Skip to content

Commit d9ff93a

Browse files
committed
feat: change linters to black
chore: blackify utils and __init__ chore: blackify preprocessing chore: blackify model_building chore: blackify evaluator chore: blackify pigs_tables chore: blackify plotting_utils chore: remove redundant target chore: add newline chore: blackify chore: blackify tests
1 parent 2447c86 commit d9ff93a

25 files changed

Lines changed: 2631 additions & 1316 deletions

Makefile

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,5 @@ test-unit:
1818
pytest tests
1919
@echo 'unit tests OK'
2020

21-
lint:
22-
pylint cobra
23-
@echo 'lint OK'
24-
25-
lint-minimal:
26-
pylint E cobra
27-
@echo 'lint minimal OK'
28-
29-
typecheck:
30-
mypy cobra
31-
@echo 'typecheck OK'
32-
33-
codestyle:
34-
pycodestyle cobra
35-
@echo 'codestyle OK'
36-
37-
docstyle:
38-
pydocstyle cobra
39-
@echo 'docstyle OK'
40-
41-
code-qa: typecheck codestyle docstyle lint-minimal
21+
black-check:
22+
black --diff cobra

cobra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .version import __version__
1+
from .version import __version__

cobra/evaluation/__init__.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44

55
from .plotting_utils import plot_performance_curves
66
from .plotting_utils import plot_variable_importance
7-
87
from .plotting_utils import plot_univariate_predictor_quality
98
from .plotting_utils import plot_correlation_matrix
109

1110
# from .evaluator import Evaluator
1211
from .evaluator import ClassificationEvaluator, RegressionEvaluator
1312

14-
__all__ = ["generate_pig_tables",
15-
"compute_pig_table",
16-
"plot_incidence",
17-
"plot_performance_curves",
18-
"plot_variable_importance",
19-
"plot_univariate_predictor_quality",
20-
"plot_correlation_matrix",
21-
"ClassificationEvaluator",
22-
"RegressionEvaluator"]
13+
__all__ = [
14+
"generate_pig_tables",
15+
"compute_pig_table",
16+
"plot_incidence",
17+
"plot_performance_curves",
18+
"plot_variable_importance",
19+
"plot_univariate_predictor_quality",
20+
"plot_correlation_matrix",
21+
"ClassificationEvaluator",
22+
"RegressionEvaluator",
23+
]

0 commit comments

Comments
 (0)