diff --git a/src/scicookie/{{cookiecutter.project_slug}}/.gitignore b/src/scicookie/{{cookiecutter.project_slug}}/.gitignore index 286bd870..4b5a864c 100644 --- a/src/scicookie/{{cookiecutter.project_slug}}/.gitignore +++ b/src/scicookie/{{cookiecutter.project_slug}}/.gitignore @@ -98,8 +98,10 @@ docs/_build/ docs/_templates/ {%+ endif %} +{%- if cookiecutter.use_mypy == "yes" %} # mypy .mypy_cache/ +{%- endif %} # IDE settings .vscode/ diff --git a/src/scicookie/{{cookiecutter.project_slug}}/conda/dev.yaml b/src/scicookie/{{cookiecutter.project_slug}}/conda/dev.yaml index cf313282..b3d853aa 100644 --- a/src/scicookie/{{cookiecutter.project_slug}}/conda/dev.yaml +++ b/src/scicookie/{{cookiecutter.project_slug}}/conda/dev.yaml @@ -26,3 +26,6 @@ dependencies: {%- if cookiecutter.documentation_engine == "sphinx" %} - pandoc {%- endif %} +{%- if cookiecutter.use_mypy == "yes" %} + - mypy +{%- endif %} diff --git a/src/scicookie/{{cookiecutter.project_slug}}/{{cookiecutter.package_slug}}/__init__.py b/src/scicookie/{{cookiecutter.project_slug}}/{{cookiecutter.package_slug}}/__init__.py index 7012692b..dc1f753e 100644 --- a/src/scicookie/{{cookiecutter.project_slug}}/{{cookiecutter.package_slug}}/__init__.py +++ b/src/scicookie/{{cookiecutter.project_slug}}/{{cookiecutter.package_slug}}/__init__.py @@ -1,4 +1,6 @@ +{%- if cookiecutter.use_mypy == "yes" %} # mypy: disable-error-code="attr-defined" +{%- endif %} """{{ cookiecutter.project_name }}.""" {%- if cookiecutter.use_blue == "yes" %} {%- set QUOTE = "'" -%}