Skip to content

Commit

Permalink
add fetch-depth, fetch-tags options (#1072)
Browse files Browse the repository at this point in the history
* add fetch-depth, fetch-tags options

* remove hash from dynamic version
  • Loading branch information
darthtrevino authored May 20, 2024
1 parent 290ce25 commit 48d4884
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ enable = true
style = "pep440"
vcs = "git"
bump = true
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- else -%}
{{ serialize_pep440(base, stage, revision, dev=distance) }}
{%- endif -%}
"""

[tool.poe.tasks]
_sort_imports = "ruff check --select I --fix . --preview"
Expand Down

0 comments on commit 48d4884

Please sign in to comment.