Skip to content

Commit

Permalink
ENH: Setup tbump
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Aug 26, 2023
1 parent 0490263 commit c4abe9d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,29 @@ tag_template = "v{new_version}"
# section containing the path of the file, relative to the
# tbump.toml location.
[[file]]
src = "..."
src = "apidocs/Doxygen-GaussJacobiQuad.cfg"
[[file]]
src = "fpm.toml"
[[file]]
src = "meson.build"

# You can specify a list of commands to
# run after the files have been patched
# and before the git commit is made

[[before_commit]]
name = 'update fortran license headers'
cmd = "python scripts/add_headers.py --dirs src/ interfaces/ --ftypes 'f90,f77' --cchar '!'"
[[before_commit]]
name = 'update C license headers'
cmd = "python scripts/add_headers.py --dirs interfaces --ftypes 'c,h' --cchar '//'"
[[before_commit]]
name = 'update Python license headers'
cmd = "python scripts/add_headers.py --dirs interfaces scripts --ftypes 'py' --cchar '#'"
[[before_commit]]
name = 'generate news'
cmd = "towncrier build --version $(tbump current-version)"

# [[before_commit]]
# name = "check changelog"
# cmd = "grep -q {new_version} Changelog.rst"
Expand Down

0 comments on commit c4abe9d

Please sign in to comment.