Skip to content

Commit e5ca97c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4e8630d commit e5ca97c

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

docs/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html
55
66
"""
7+
78
# -- Project information -----------------------------------------------------
89
from __future__ import annotations
910

hooks/post_gen_project.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains hooks which are executed after the template is rendered."""
2+
23
from __future__ import annotations
34

45
import shutil

hooks/pre_gen_project.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains hooks which are executed before the template is rendered."""
2+
23
from __future__ import annotations
34

45
import re

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ url = https://cookiecutter-pytask-plugin.readthedocs.io/en/latest
77
author = Tobias Raabe
88
author_email = [email protected]
99
license = MIT
10-
license_file = LICENSE
10+
license_files = LICENSE
1111
platforms = unix, linux, osx, cygwin, win32
1212
classifiers =
1313
Development Status :: 3 - Alpha
@@ -26,5 +26,5 @@ project_urls =
2626
Tracker = https://github.com/pytask-dev/cookiecutter-pytask-plugin/issues
2727

2828
[options]
29-
python_requires = >=3.7
29+
python_requires = >=3.9
3030
zip_safe = False

tests/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""This file is necessary to apply custom mypy configurations for the tests."""
2+
23
from __future__ import annotations

tests/test_cookie.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88

99

10-
@pytest.mark.end_to_end()
10+
@pytest.mark.end_to_end
1111
def test_bake_project(cookies):
1212
major, minor = sys.version_info[:2]
1313
python_version = f"{major}.{minor}"
@@ -25,7 +25,7 @@ def test_bake_project(cookies):
2525
assert result.project_path.is_dir()
2626

2727

28-
@pytest.mark.end_to_end()
28+
@pytest.mark.end_to_end
2929
def test_remove_readthedocs(cookies):
3030
result = cookies.bake(extra_context={"add_readthedocs": "no"})
3131

@@ -39,7 +39,7 @@ def test_remove_readthedocs(cookies):
3939
assert "readthedocs" not in readme
4040

4141

42-
@pytest.mark.end_to_end()
42+
@pytest.mark.end_to_end
4343
def test_remove_github_actions(cookies):
4444
result = cookies.bake(extra_context={"add_github_actions": "no"})
4545

@@ -53,7 +53,7 @@ def test_remove_github_actions(cookies):
5353
assert "github/workflow/status" not in readme
5454

5555

56-
@pytest.mark.end_to_end()
56+
@pytest.mark.end_to_end
5757
def test_remove_tox(cookies):
5858
result = cookies.bake(extra_context={"add_tox": "no"})
5959

@@ -67,7 +67,7 @@ def test_remove_tox(cookies):
6767
assert not tox.exists()
6868

6969

70-
@pytest.mark.end_to_end()
70+
@pytest.mark.end_to_end
7171
def test_remove_license(cookies):
7272
result = cookies.bake(extra_context={"open_source_license": "Not open source"})
7373

@@ -79,7 +79,7 @@ def test_remove_license(cookies):
7979
assert not license_.exists()
8080

8181

82-
@pytest.mark.end_to_end()
82+
@pytest.mark.end_to_end
8383
@pytest.mark.skipif(os.environ.get("CI") is None, reason="Run only in CI.")
8484
def test_check_conda_environment_creation_and_run_all_checks(cookies):
8585
"""Test that the conda environment is created and pre-commit passes."""

{{cookiecutter.package_name}}/src/{{cookiecutter.__package_name}}/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains the main namespace of the package."""
2+
23
from __future__ import annotations
34

45
try:

0 commit comments

Comments
 (0)