Skip to content

Commit

Permalink
ci: update pre-commit hooks
Browse files Browse the repository at this point in the history
Signed-off-by: develop-cs <[email protected]>
  • Loading branch information
develop-cs committed Apr 11, 2024
1 parent f6f41ee commit 6a5ad49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ jobs:
run: pre-commit run --all-files
publish:
if: success() && startsWith(github.ref, 'refs/tags')
name: Publish to PyPI
name: Publish release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -48,8 +51,5 @@ jobs:
run: |
python -m pip install --upgrade build
python -m build
- name: Publish package distributions to PyPI
- name: Upload package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
rev: v0.3.5
hooks:
- id: ruff
args: [ --fix ]
Expand All @@ -17,8 +17,13 @@ repos:
rev: v8.18.2
hooks:
- id: gitleaks
- repo: https://github.com/pypa/pip-audit
rev: v2.7.2
hooks:
- id: pip-audit
args: ["--skip-editable"]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.1.0
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
Expand Down

0 comments on commit 6a5ad49

Please sign in to comment.