diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe60bce..a85bccb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,18 +16,21 @@ repos: entry: poetry run black language: system types: [python] + require_serial: true - id: flake8 name: flake8 entry: poetry run flake8 language: system types: [python] args: ["--config", "pyproject.toml"] + require_serial: true - id: poetry_check description: Check the integrity of pyproject.toml name: poetry_check entry: poetry check language: system pass_filenames: false + require_serial: true # isorting our imports - repo: https://github.com/timothycrosley/isort diff --git a/copier/__init__.py b/copier/__init__.py index 7a3b634..e512689 100644 --- a/copier/__init__.py +++ b/copier/__init__.py @@ -2,3 +2,6 @@ """ from .main import * # noqa from .tools import * # noqa + +# This version is a placeholder autoupdated by poetry-dynamic-versioning +__version__ = "0.0.0" diff --git a/copier/cli.py b/copier/cli.py index 0c34fc4..99aea23 100755 --- a/copier/cli.py +++ b/copier/cli.py @@ -4,6 +4,7 @@ from textwrap import dedent from plumbum import cli, colors +from . import __version__ from .config.objects import UserMessageError from .main import copy from .types import AnyByStrDict, OptStr @@ -37,6 +38,7 @@ class CopierApp(cli.Application): copier [SWITCHES] [update] [destination_path] """ ) + VERSION = __version__ CALL_MAIN_IF_NESTED_COMMAND = False data: AnyByStrDict = {} diff --git a/pyproject.toml b/pyproject.toml index 80f1741..2e9b751 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [tool] [tool.poetry] name = "copier" +# This version is a placeholder autoupdated by poetry-dynamic-versioning version = "0.0.0" description = "A library for rendering project templates." license = "MIT"