Skip to content

Commit 022b7ad

Browse files
committed
Remove from future imports.
1 parent 28e0190 commit 022b7ad

File tree

9 files changed

+3
-15
lines changed

9 files changed

+3
-15
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ repos:
3737
rev: v2.7.1
3838
hooks:
3939
- id: reorder-python-imports
40-
args: [--py37-plus, --add-import, 'from __future__ import annotations']
4140
- repo: https://github.com/psf/black
4241
rev: 22.1.0
4342
hooks:

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
"""
77
# -- Project information -----------------------------------------------------
8-
from __future__ import annotations
8+
99

1010
project = "cookiecutter-pytask-project"
1111
author = "Tobias Raabe"

hooks/post_gen_project.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""This module contains hooks which are executed after the template is rendered."""
2-
from __future__ import annotations
3-
42
import shutil
53
import subprocess
64
import warnings

hooks/pre_gen_project.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""This module contains hooks which are executed before the template is rendered."""
2-
from __future__ import annotations
3-
42
import re
53

64
MODULE_REGEX = r"^[-_a-zA-Z0-9]*$"

tests/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
"""This file is necessary to apply custom mypy configurations for the tests."""
2-
from __future__ import annotations
1+
"""This module is necessary to configure mypy's behavior for the tests."""

tests/test_cookie.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import os
42
import subprocess
53
import sys

{{cookiecutter.project_slug}}/.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ repos:
3636
rev: v2.7.1
3737
hooks:
3838
- id: reorder-python-imports
39-
args: [--py37-plus, --add-import, 'from __future__ import annotations']
4039
- repo: https://github.com/asottile/setup-cfg-fmt
4140
rev: v1.20.0
4241
hooks:

{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
"""This module contains the general configuration of the project."""
2-
from __future__ import annotations
3-
42
from pathlib import Path
53

64

75
try:
86
from ._version import version as __version__
97
except ImportError:
10-
# broken installation, we don't even try unknown only works because we do poor mans
11-
# version compare
128
__version__ = "unknown"
139

1410

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""This module is necessary to configure mypy's behavior for the tests."""

0 commit comments

Comments
 (0)