From a87614043e9f856d75fca51656b3525e051ca69f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:32:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/source/conf.py | 1 + hooks/post_gen_project.py | 1 + hooks/pre_gen_project.py | 1 + setup.cfg | 4 ++-- tests/__init__.py | 1 + .../src/{{cookiecutter.__package_name}}/__init__.py | 1 + 6 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index f8958ad..9f1d964 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -4,6 +4,7 @@ documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html """ + # -- Project information ----------------------------------------------------- from __future__ import annotations diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index efe9511..3294337 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -1,4 +1,5 @@ """This module contains hooks which are executed after the template is rendered.""" + from __future__ import annotations import shutil diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index d6ffcb8..aea9f31 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -1,4 +1,5 @@ """This module contains hooks which are executed before the template is rendered.""" + from __future__ import annotations import re diff --git a/setup.cfg b/setup.cfg index 5616eeb..a72d740 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,7 @@ url = https://cookiecutter-pytask-plugin.readthedocs.io/en/latest author = Tobias Raabe author_email = raabe@posteo.de license = MIT -license_file = LICENSE +license_files = LICENSE platforms = unix, linux, osx, cygwin, win32 classifiers = Development Status :: 3 - Alpha @@ -26,5 +26,5 @@ project_urls = Tracker = https://github.com/pytask-dev/cookiecutter-pytask-plugin/issues [options] -python_requires = >=3.7 +python_requires = >=3.8 zip_safe = False diff --git a/tests/__init__.py b/tests/__init__.py index 83a9d18..71bd238 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,2 +1,3 @@ """This file is necessary to apply custom mypy configurations for the tests.""" + from __future__ import annotations diff --git a/{{cookiecutter.package_name}}/src/{{cookiecutter.__package_name}}/__init__.py b/{{cookiecutter.package_name}}/src/{{cookiecutter.__package_name}}/__init__.py index 5769aa6..483c821 100644 --- a/{{cookiecutter.package_name}}/src/{{cookiecutter.__package_name}}/__init__.py +++ b/{{cookiecutter.package_name}}/src/{{cookiecutter.__package_name}}/__init__.py @@ -1,4 +1,5 @@ """This module contains the main namespace of the package.""" + from __future__ import annotations try: