diff --git a/pyproject.toml b/pyproject.toml index a023af1..a10e216 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,6 +73,9 @@ truethy-bool = true [tool.mypy] disable_error_code = [] +[tool.pylint."MASTER"] +ignore = ["src/ebdamame/_version.py"] + [build-system] requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"] build-backend = "hatchling.build" @@ -86,6 +89,9 @@ source = "vcs" [tool.hatch.build.hooks.vcs] version-file = "src/ebdamame/_version.py" +template = ''' +version = "{version}" +''' [tool.hatch.build.targets.sdist] exclude = ["/unittests"] diff --git a/src/ebdamame/_version.py b/src/ebdamame/_version.py new file mode 100644 index 0000000..e69de29 diff --git a/src/ebdamame/version.py b/src/ebdamame/version.py new file mode 100644 index 0000000..ef86808 --- /dev/null +++ b/src/ebdamame/version.py @@ -0,0 +1,21 @@ +""" +My Module Docstring for version module. +""" + +# file generated by setuptools_scm +# don't change, don't track in version control +TYPE_CHECKING = False +if TYPE_CHECKING: + from typing import Tuple, Union + + VERSION_TUPLE = Tuple[Union[int, str], ...] +else: + VERSION_TUPLE = object + +version: str +__version__: str +__version_tuple__: VERSION_TUPLE +version_tuple: VERSION_TUPLE + +__version__ = version = "0.1.6.dev28+gd2fbd24" +__version_tuple__ = version_tuple = (0, 1, 6, "dev28", "gd2fbd24")