Skip to content
Commits on Source (4)
...@@ -40,7 +40,7 @@ repos: ...@@ -40,7 +40,7 @@ repos:
- id: rst-linter - id: rst-linter
- repo: https://github.com/myint/rstcheck.git - repo: https://github.com/myint/rstcheck.git
rev: master rev: 3f92957478422df87bd730abde66f089cc1ee19b
hooks: hooks:
- id: rstcheck - id: rstcheck
...@@ -80,6 +80,7 @@ repos: ...@@ -80,6 +80,7 @@ repos:
--doctests --doctests
additional_dependencies: additional_dependencies:
- flake8-bugbear - flake8-bugbear
- tryceratops
- repo: https://github.com/mgedmin/check-manifest - repo: https://github.com/mgedmin/check-manifest
rev: '0.46' rev: '0.46'
...@@ -93,3 +94,8 @@ repos: ...@@ -93,3 +94,8 @@ repos:
args: args:
- "--server" - "--server"
- https://git.shore.co.il - https://git.shore.co.il
- repo: https://github.com/codespell-project/codespell.git
rev: v2.1.0
hooks:
- id: codespell
...@@ -41,7 +41,7 @@ Installation ...@@ -41,7 +41,7 @@ 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 specifc 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 versions of Template all of the dependencies were required, so to
avoid breakage this behavior will be be kept. However, this will change in a avoid breakage this behavior will be be kept. However, this will change in a
later release so to the keep the expected behavior please update your project's later release so to the keep the expected behavior please update your project's
......
...@@ -12,7 +12,6 @@ from __future__ import ( ...@@ -12,7 +12,6 @@ from __future__ import (
from os import environ from os import environ
import sys import sys
import argparse import argparse
from argparse import ArgumentParser
import template.filters import template.filters
# I ignore import errors here and fail on them later in the main function so # I ignore import errors here and fail on them later in the main function so
...@@ -40,7 +39,7 @@ def render(template_string): ...@@ -40,7 +39,7 @@ def render(template_string):
def main(): def main():
"""Main entrypoint.""" """Main entrypoint."""
parser = ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument( parser.add_argument(
"filename", "filename",
help="Input filename", help="Input filename",
......