From c765dc273e852d9f00790dd866ab225d9e0f5b68 Mon Sep 17 00:00:00 2001 From: Santhosh Sundaram Date: Mon, 22 Jul 2024 16:20:45 +0530 Subject: [PATCH 1/2] changed mypy config logic and removed cookiecutter dependency --- {{cookiecutter.project_name}}/pyproject.toml | 2 +- .../src/{{cookiecutter.__project_slug}}/__init__.py | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index d98c443..34650f5 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -47,7 +47,7 @@ classifiers = [ {%- if cookiecutter.backend == "hatch" %} dynamic = ["version"] {%- endif %} -dependencies = ["pybamm", "cookiecutter"] +dependencies = ["pybamm",] [project.optional-dependencies] dev = [ diff --git a/{{cookiecutter.project_name}}/src/{{cookiecutter.__project_slug}}/__init__.py b/{{cookiecutter.project_name}}/src/{{cookiecutter.__project_slug}}/__init__.py index 4b10162..7e3555f 100644 --- a/{{cookiecutter.project_name}}/src/{{cookiecutter.__project_slug}}/__init__.py +++ b/{{cookiecutter.project_name}}/src/{{cookiecutter.__project_slug}}/__init__.py @@ -13,18 +13,12 @@ {# keep this line here for newline #} {%- if cookiecutter.mypy %} __all__: list[str] = [ - "__version__", - "pybamm", - "parameter_sets", - "Model", - "models", -] {%- else %} __all__ = [ +{%- endif %} "__version__", "pybamm", "parameter_sets", "Model", "models", ] -{%- endif %} From 510955a1abed07abb8669b977e03f663aac22be1 Mon Sep 17 00:00:00 2001 From: Santhosh <52504160+santacodes@users.noreply.github.com> Date: Mon, 22 Jul 2024 21:48:33 +0530 Subject: [PATCH 2/2] Update {{cookiecutter.project_name}}/pyproject.toml Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> --- {{cookiecutter.project_name}}/pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index 34650f5..1a2d993 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -55,7 +55,6 @@ dev = [ "pytest-cov >=3", "nox[uv]", "pre-commit", - "pytest-cookies", ] docs = [ "sphinx",