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

# 149 Refactor codebase with Pylint & Black #149

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
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
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