From bd4051ec5b8a07aa42332a7ec7b9fba3ece26ce8 Mon Sep 17 00:00:00 2001 From: ChristopherGS Date: Tue, 21 Feb 2023 16:13:18 +0800 Subject: [PATCH] tox publish fix --- .../regression_model/pipeline.py | 6 +----- section-05-production-model-package/tox.ini | 1 - section-07-ci-and-publishing/model-package/tox.ini | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/section-05-production-model-package/regression_model/pipeline.py b/section-05-production-model-package/regression_model/pipeline.py index e6153a6b8..6fc888e01 100644 --- a/section-05-production-model-package/regression_model/pipeline.py +++ b/section-05-production-model-package/regression_model/pipeline.py @@ -1,9 +1,5 @@ from feature_engine.encoding import OrdinalEncoder, RareLabelEncoder -from feature_engine.imputation import ( - AddMissingIndicator, - CategoricalImputer, - MeanMedianImputer, -) +from feature_engine.imputation import AddMissingIndicator, CategoricalImputer, MeanMedianImputer from feature_engine.selection import DropFeatures from feature_engine.transformation import LogTransformer from feature_engine.wrappers import SklearnTransformerWrapper diff --git a/section-05-production-model-package/tox.ini b/section-05-production-model-package/tox.ini index 352679afa..ffc4c60c8 100644 --- a/section-05-production-model-package/tox.ini +++ b/section-05-production-model-package/tox.ini @@ -47,7 +47,6 @@ deps = commands = flake8 regression_model tests isort regression_model tests - black regression_model tests {posargs:mypy regression_model} diff --git a/section-07-ci-and-publishing/model-package/tox.ini b/section-07-ci-and-publishing/model-package/tox.ini index 59e2500eb..d93e00636 100644 --- a/section-07-ci-and-publishing/model-package/tox.ini +++ b/section-07-ci-and-publishing/model-package/tox.ini @@ -67,7 +67,7 @@ commands= [testenv:publish_model] envdir = {toxworkdir}/test_package -whitelist_externals = python +allowlist_externals = * deps = {[testenv:test_package]deps}