Skip to content
Commits on Source (3)
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0 rev: v4.0.1
hooks: hooks:
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-merge-conflict - id: check-merge-conflict
...@@ -15,19 +15,12 @@ repos: ...@@ -15,19 +15,12 @@ repos:
- id: detect-secrets - id: detect-secrets
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.26.1 rev: v1.26.2
hooks: hooks:
- id: yamllint - id: yamllint
- repo: https://github.com/amperser/proselint/
rev: 0.10.2
hooks:
- id: proselint
types: [plain-text]
exclude: LICENSE
- repo: https://github.com/ambv/black - repo: https://github.com/ambv/black
rev: 20.8b1 rev: 21.7b0
hooks: hooks:
- id: black - id: black
args: args:
...@@ -72,7 +65,7 @@ repos: ...@@ -72,7 +65,7 @@ repos:
- pyroma - pyroma
- repo: https://gitlab.com/pycqa/flake8.git - repo: https://gitlab.com/pycqa/flake8.git
rev: 3.9.1 rev: 3.9.2
hooks: hooks:
- id: flake8 - id: flake8
args: args:
......
...@@ -42,10 +42,11 @@ Installation ...@@ -42,10 +42,11 @@ Installation
This will install Template along with the dependencies for all of the filters This will install Template along with the dependencies for all of the filters
available with it. However, you can use narrower specifiers if you want to avoid available with it. However, you can use narrower specifiers if you want to avoid
a specific dependency (the filters listed below include the needed specifier). a specific dependency (the filters listed below include the needed specifier).
In previous versions of Template all of the dependencies were required, so to In previous releases of Template all of the dependencies were required. To not
avoid breakage this behavior will be be kept. However, this will change in a break existing templates, for the foreseeable future those dependencies will
later release so to the keep the expected behavior please update your project's remain a requirement and new dependencies for specific filters will be optional.
dependencies. This will change in the 0.9 release where all filter specific dependencies will
be optional. Please update your project before that happens.
Examples Examples
...@@ -64,8 +65,8 @@ Examples ...@@ -64,8 +65,8 @@ Examples
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
-o OUTPUT, --output OUTPUT -o OUTPUT, --output OUTPUT
Output to filename Output to filename
$ export name='John' $ export name='John'
$ echo 'Hello {{ name if name is defined else 'world' }}. | template $ echo 'Hello {{ name if name is defined else 'world' }}. | template
Hello John. Hello John.
......
[bumpversion] [bumpversion]
current_version = 0.7.3 current_version = 0.7.4
commit = True commit = True
tag = True tag = True
......
...@@ -18,7 +18,7 @@ extras_require["all"] = list( ...@@ -18,7 +18,7 @@ extras_require["all"] = list(
setup( setup(
name="template", name="template",
version="0.7.3", version="0.7.4",
description=description, description=description,
long_description=open("README.rst", "r").read(), long_description=open("README.rst", "r").read(),
long_description_content_type="text/x-rst", long_description_content_type="text/x-rst",
......
...@@ -23,7 +23,7 @@ except ImportError: ...@@ -23,7 +23,7 @@ except ImportError:
pass pass
__version__ = "0.7.3" __version__ = "0.7.4"
def render(template_string): def render(template_string):
......