Skip to content

Commit

Permalink
docs: fix version import (#191)
Browse files Browse the repository at this point in the history
* docs: fix version import

Signed-off-by: Henry Schreiner <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Henry Schreiner <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
henryiii and pre-commit-ci[bot] authored May 10, 2024
1 parent 6b8b4bd commit 342a748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

from __future__ import annotations

import importlib.metadata
from datetime import datetime, timezone

from src.pyproject_fmt import __version__

company, name = "tox-dev", "pyproject-fmt"
release, version = __version__, ".".join(__version__.split(".")[:2])
release = importlib.metadata.version("pyproject_fmt")
version = ".".join(release.split(".")[:2])
now = datetime.now(tz=timezone.utc)
copyright = f"2022-{now.year}, {company}" # noqa: A001
master_doc, source_suffix = "index", ".rst"
Expand Down

0 comments on commit 342a748

Please sign in to comment.