Skip to content

Commit

Permalink
feat: change linters to black
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ZlaTanskY committed Feb 24, 2023
1 parent 2447c86 commit d9ff93a
Show file tree
Hide file tree
Showing 25 changed files with 2,631 additions and 1,316 deletions.
23 changes: 2 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,5 @@ test-unit:
pytest tests
@echo 'unit tests OK'

lint:
pylint cobra
@echo 'lint OK'

lint-minimal:
pylint E cobra
@echo 'lint minimal OK'

typecheck:
mypy cobra
@echo 'typecheck OK'

codestyle:
pycodestyle cobra
@echo 'codestyle OK'

docstyle:
pydocstyle cobra
@echo 'docstyle OK'

code-qa: typecheck codestyle docstyle lint-minimal
black-check:
black --diff cobra
2 changes: 1 addition & 1 deletion cobra/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .version import __version__
from .version import __version__
21 changes: 11 additions & 10 deletions cobra/evaluation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@

from .plotting_utils import plot_performance_curves
from .plotting_utils import plot_variable_importance

from .plotting_utils import plot_univariate_predictor_quality
from .plotting_utils import plot_correlation_matrix

# from .evaluator import Evaluator
from .evaluator import ClassificationEvaluator, RegressionEvaluator

__all__ = ["generate_pig_tables",
"compute_pig_table",
"plot_incidence",
"plot_performance_curves",
"plot_variable_importance",
"plot_univariate_predictor_quality",
"plot_correlation_matrix",
"ClassificationEvaluator",
"RegressionEvaluator"]
__all__ = [
"generate_pig_tables",
"compute_pig_table",
"plot_incidence",
"plot_performance_curves",
"plot_variable_importance",
"plot_univariate_predictor_quality",
"plot_correlation_matrix",
"ClassificationEvaluator",
"RegressionEvaluator",
]
Loading

0 comments on commit d9ff93a

Please sign in to comment.