Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2024
1 parent bacdeea commit 68b9c05
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html
"""

# -- Project information -----------------------------------------------------
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains hooks which are executed after the template is rendered."""

from __future__ import annotations

import shutil
Expand Down
1 change: 1 addition & 0 deletions hooks/pre_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains hooks which are executed before the template is rendered."""

from __future__ import annotations

import re
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://cookiecutter-pytask-plugin.readthedocs.io/en/latest
author = Tobias Raabe
author_email = [email protected]
license = MIT
license_file = LICENSE
license_files = LICENSE
platforms = unix, linux, osx, cygwin, win32
classifiers =
Development Status :: 3 - Alpha
Expand All @@ -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
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""This file is necessary to apply custom mypy configurations for the tests."""

from __future__ import annotations
12 changes: 6 additions & 6 deletions tests/test_cookie.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest


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


@pytest.mark.end_to_end()
@pytest.mark.end_to_end
def test_remove_readthedocs(cookies):
result = cookies.bake(extra_context={"add_readthedocs": "no"})

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


@pytest.mark.end_to_end()
@pytest.mark.end_to_end
def test_remove_github_actions(cookies):
result = cookies.bake(extra_context={"add_github_actions": "no"})

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


@pytest.mark.end_to_end()
@pytest.mark.end_to_end
def test_remove_tox(cookies):
result = cookies.bake(extra_context={"add_tox": "no"})

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


@pytest.mark.end_to_end()
@pytest.mark.end_to_end
def test_remove_license(cookies):
result = cookies.bake(extra_context={"open_source_license": "Not open source"})

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


@pytest.mark.end_to_end()
@pytest.mark.end_to_end
@pytest.mark.skipif(os.environ.get("CI") is None, reason="Run only in CI.")
def test_check_conda_environment_creation_and_run_all_checks(cookies):
"""Test that the conda environment is created and pre-commit passes."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the main namespace of the package."""

from __future__ import annotations

try:
Expand Down

0 comments on commit 68b9c05

Please sign in to comment.