Skip to content

Commit df62ed1

Browse files
committed
fix version file writing
1 parent 38fe431 commit df62ed1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ build = ["twine"]
4343

4444
[tool.hatch.version]
4545
source = "vcs"
46-
path = "sphinxcontrib/datatemplates/version.py"
46+
47+
[tool.hatch.build.hooks.vcs]
48+
version-file = "sphinxcontrib/datatemplates/version.py"
4749

4850
[tool.hatch.build.targets.sdist]
4951
include = ["sphinxcontrib/", "README.rst", "LICENSE", "pyproject.toml"]
@@ -75,6 +77,5 @@ dependencies = ["sphinx"]
7577
[tool.hatch.envs.docs.scripts]
7678
build = "python -m sphinx.cmd.build -E -W -v -T doc/source doc/build"
7779

78-
[tool.flake8]
79-
show-source = true
80-
exclude = ".tox,dist,doc,*.egg,build"
80+
[tool.ruff]
81+
exclude = ["sphinxcontrib/datatemplates/version.py"]

0 commit comments

Comments
 (0)