Skip to content

Commit

Permalink
style(pyproject): make git_describe_command an array (#321)
Browse files Browse the repository at this point in the history
While setuptools_scm accepts a string, the schema only notes an array,
so toml schema linters will complain about this.

https://json.schemastore.org/partial-setuptools-scm.json

Co-authored-by: Imani Pelton <[email protected]>
  • Loading branch information
lengau and bepri authored Jan 13, 2025
1 parent 170dd5e commit 6681521
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,16 @@ version_scheme = "post-release"
# deviations from the default 'git describe' command:
# - only match annotated tags
# - only match tags formatted as 'X.Y.Z'
git_describe_command = "git describe --dirty --long --match '[0-9]*.[0-9]*.[0-9]*' --exclude '*[^0-9.]*'"
git_describe_command = [
"git",
"describe",
"--dirty",
"--long",
"--match",
"[0-9]*.[0-9]*.[0-9]*",
"--exclude",
"*[^0-9.]*",
]

[tool.setuptools.packages.find]
include = ["*craft*"]
Expand Down

0 comments on commit 6681521

Please sign in to comment.