From f648a312ab74c5e874bd39bbcaa37367b26816ef Mon Sep 17 00:00:00 2001 From: Juan Orduz Date: Fri, 6 Sep 2024 09:48:35 +0200 Subject: [PATCH] relax some test dependencies (#1007) --- mypy.ini | 19 ------------------- pyproject.toml | 34 ++++++++++++++++++++++++++-------- 2 files changed, 26 insertions(+), 27 deletions(-) delete mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 76d940a3..00000000 --- a/mypy.ini +++ /dev/null @@ -1,19 +0,0 @@ -[mypy] -files = pymc_marketing/*.py -plugins = numpy.typing.mypy_plugin -exclude = build|dist|docs|examples|tests|setup.py - -[mypy-matplotlib.*] -ignore_missing_imports = True - -[mypy-pymc.*] -ignore_missing_imports = True - -[mypy-seaborn.*] -ignore_missing_imports = True - -[mypy-sklearn.*] -ignore_missing_imports = True - -[mypy-scipy.*] -ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index 65dd2ec9..48ea8dca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,10 +73,10 @@ test = [ "graphviz>=0.20.1", "lifetimes==0.11.3", "papermill", - "preliz==0.8.0", - "pytest-cov==3.0.0", - "pytest-mock==3.14.0", - "pytest==7.0.1", + "preliz>=0.8.0", + "pytest-cov>=3.0.0", + "pytest-mock>=3.14.0", + "pytest>=7.0.1", "mlflow>=2.0.0", ] @@ -94,10 +94,8 @@ version = { file = "pymc_marketing/version.txt" } [project.urls] repository = "https://github.com/pymc-labs/pymc-marketing" -# Other options -#homepage = "https://bambinos.github.io/bambi" -#documentation = "" -#changelog = "" +homepage = "https://www.pymc-marketing.io" + [tool.ruff.lint] select = ["B", "D", "DOC", "E", "F", "I", "RUF", "S", "UP", "W"] @@ -138,3 +136,23 @@ addopts = [ ] filterwarnings = ["ignore::DeprecationWarning:bokeh.core.property.primitive:37"] testpaths = "tests" + +[tool.mypy] +files = "pymc_marketing/*.py" +plugins = "numpy.typing.mypy_plugin" +exclude = "build|dist|docs|examples|tests|setup.py" + +[tool.mypy-matplotlib] +ignore_missing_imports = true + +[tool.mypy-pymc] +ignore_missing_imports = true + +[tool.mypy-seaborn] +ignore_missing_imports = true + +[tool.mypy-sklearn] +ignore_missing_imports = true + +[tool.mypy-scipy] +ignore_missing_imports = true