Skip to content

Commit

Permalink
Chore: pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 23, 2023
1 parent 85afc37 commit a496197
Show file tree
Hide file tree
Showing 16 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/major-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Major release
about: Create a new major release
title: New major release
assignees: 'sesheta'
assignees: "sesheta"
labels: bot
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/minor-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Minor release
about: Create a new minor release
title: New minor release
assignees: 'sesheta'
assignees: "sesheta"
labels: bot
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/patch-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Patch release
about: Create a new patch release
title: New patch release
assignees: 'sesheta'
assignees: "sesheta"
labels: bot
---

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/builds.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: '🧪 Test builds (matrix)'
name: "🧪 Test builds (matrix)"

# yamllint disable-line rule:truthy
on:
Expand All @@ -11,14 +11,14 @@ jobs:
pre-release:
# Don't run if pull request is NOT merged
if: github.event.pull_request.merged == true
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
continue-on-error: true
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: 'Populate environment variables'
- name: "Populate environment variables"
id: setenv
run: |
echo "Action triggered by user: ${GITHUB_TRIGGERING_ACTOR}"
Expand All @@ -29,19 +29,19 @@ jobs:
vernum="${{ matrix.python-version }}.${datetime}"
echo "vernum=${vernum}" >> "$GITHUB_OUTPUT"
- name: 'Checkout repository'
- name: "Checkout repository"
uses: actions/checkout@v4

- name: 'Set up Python ${{ matrix.python-version }}'
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 'Install dependencies'
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: 'Tag for test release'
- name: "Tag for test release"
# Delete all local tags, then create a synthetic tag for testing
# Use the date/time to avoid conflicts uploading to Test PyPI
run: |
Expand All @@ -51,6 +51,6 @@ jobs:
git checkout "tags/v${{ steps.setenv.outputs.vernum }}"
grep version pyproject.toml
- name: 'Build with TOX'
- name: "Build with TOX"
run: |
tox -e build
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: "3.9"

- name: Install dependencies
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
name: '⛔️ Update dependencies'
name: "⛔️ Update dependencies"

# yamllint disable-line rule:truthy
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * MON'
- cron: "0 0 * * MON"

jobs:
update-dependencies:
name: 'Update Python modules'
name: "Update Python modules"
runs-on: ubuntu-latest
permissions:
# IMPORTANT: mandatory to raise the PR
Expand All @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: 'Setup PDM for build commands'
- name: "Setup PDM for build commands"
uses: pdm-project/setup-pdm@v3
with:
version: 2.10.0
Expand All @@ -33,8 +33,8 @@ jobs:
uses: pdm-project/update-deps-action@main
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'Chore: Update dependencies and pdm.lock'
pr-title: 'Update Python module dependencies'
commit-message: "Chore: Update dependencies and pdm.lock"
pr-title: "Update Python module dependencies"
update-strategy: eager
# Whether to install PDM plugins before update
install-plugins: 'false'
install-plugins: "false"
18 changes: 9 additions & 9 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: '🗒️ Build documentation'
name: "🗒️ Build documentation"

# yamllint disable-line rule:truthy
on:
Expand All @@ -11,36 +11,36 @@ jobs:
build_and_deploy:
# Don't run if pull request is NOT merged
if: github.event.pull_request.merged == true
name: 'Rebuild documentation'
name: "Rebuild documentation"
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python-version: ['3.11']
python-version: ["3.11"]
steps:
- name: 'Checkout repository'
- name: "Checkout repository"
uses: actions/checkout@v4

- name: 'Setup PDM for build commands'
- name: "Setup PDM for build commands"
uses: pdm-project/setup-pdm@v3

- name: 'Set up Python ${{ matrix.python-version }}'
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: 'Install dependencies'
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pdm export -o requirements.txt
if [ -f docs/requirements.txt ]; then
pip install -r docs/requirements.txt; fi
- name: 'Build documentation: (tox/sphinx)'
- name: "Build documentation: (tox/sphinx)"
run: |
tox -e docs
- name: 'Publish documentation'
- name: "Publish documentation"
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"

- name: Install dependencies
run: |
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: '🐍📦 Production build and release'
name: "🐍📦 Production build and release"

# GitHub/PyPI trusted publisher documentation:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
Expand All @@ -13,45 +13,45 @@ on:
- v*.*.*

env:
python-version: '3.10'
python-version: "3.10"

### BUILD ###

jobs:
build:
name: '🐍 Build packages'
name: "🐍 Build packages"
runs-on: ubuntu-latest
permissions:
# IMPORTANT: mandatory for Sigstore
id-token: write
steps:
### BUILDING ###

- name: 'Checkout repository'
- name: "Checkout repository"
uses: actions/checkout@v4

- name: 'Setup PDM for build commands'
- name: "Setup PDM for build commands"
uses: pdm-project/setup-pdm@v3
with:
version: 2.10.0

- name: 'Setup Python 3.10'
- name: "Setup Python 3.10"
uses: actions/[email protected]
with:
python-version: ${{ env.python-version }}

- name: 'Update version from tags for production release'
- name: "Update version from tags for production release"
run: |
echo "Github versioning: ${{ github.ref_name }}"
scripts/release-versioning.sh
- name: 'Build with PDM backend'
- name: "Build with PDM backend"
run: |
pdm build
### SIGNING ###

- name: 'Sign packages with Sigstore'
- name: "Sign packages with Sigstore"
uses: sigstore/[email protected]
with:
inputs: >-
Expand All @@ -67,7 +67,7 @@ jobs:
### PUBLISH GITHUB ###

github:
name: '📦 Publish to GitHub'
name: "📦 Publish to GitHub"
# Only publish on tag pushes
if: startsWith(github.ref, 'refs/tags/')
needs:
Expand All @@ -77,13 +77,13 @@ jobs:
# IMPORTANT: mandatory to publish artefacts
contents: write
steps:
- name: '⬇ Download build artefacts'
- name: "⬇ Download build artefacts"
uses: actions/download-artifact@v3
with:
name: ${{ github.ref_name }}
path: dist/

- name: '📦 Publish release to GitHub'
- name: "📦 Publish release to GitHub"
uses: ModeSevenIndustrialSolutions/action-automatic-releases@latest
with:
# Valid inputs are:
Expand All @@ -99,7 +99,7 @@ jobs:
### PUBLISH PYPI TEST ###

testpypi:
name: '📦 Publish to PyPi Test'
name: "📦 Publish to PyPi Test"
# Only publish on tag pushes
if: startsWith(github.ref, 'refs/tags/')
needs:
Expand All @@ -111,13 +111,13 @@ jobs:
# IMPORTANT: mandatory for trusted publishing
id-token: write
steps:
- name: '⬇ Download build artefacts'
- name: "⬇ Download build artefacts"
uses: actions/download-artifact@v3
with:
name: ${{ github.ref_name }}
path: dist/

- name: 'Remove files unsupported by PyPi'
- name: "Remove files unsupported by PyPi"
run: |
if [ -f dist/buildvars.txt ]; then
rm dist/buildvars.txt
Expand All @@ -133,7 +133,7 @@ jobs:
### PUBLISH PYPI ###

pypi:
name: '📦 Publish to PyPi'
name: "📦 Publish to PyPi"
# Only publish on tag pushes
if: startsWith(github.ref, 'refs/tags/')
needs:
Expand All @@ -145,23 +145,23 @@ jobs:
# IMPORTANT: mandatory for trusted publishing
id-token: write
steps:
- name: '⬇ Download build artefacts'
- name: "⬇ Download build artefacts"
uses: actions/download-artifact@v3
with:
name: ${{ github.ref_name }}
path: dist/

- name: 'Remove files unsupported by PyPi'
- name: "Remove files unsupported by PyPi"
run: |
if [ -f dist/buildvars.txt ]; then
rm dist/buildvars.txt
fi
rm dist/*.crt dist/*.sig*
- name: 'Setup PDM for build commands'
- name: "Setup PDM for build commands"
uses: pdm-project/setup-pdm@v3

- name: 'Publish release to PyPI'
- name: "Publish release to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"

- name: Install dependencies
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: '⛔️ Security auditing'
name: "⛔️ Security auditing"

# yamllint disable-line rule:truthy
on:
Expand All @@ -14,17 +14,17 @@ on:

jobs:
build:
name: 'Audit Python dependencies'
name: "Audit Python dependencies"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: 'Checkout repository'
- name: "Checkout repository"
uses: actions/checkout@v4

- name: 'Setup PDM for build commands'
- name: "Setup PDM for build commands"
uses: pdm-project/setup-pdm@v3
with:
version: 2.10.0
Expand All @@ -34,15 +34,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: 'Install dependencies'
- name: "Install dependencies"
run: |
pip install --upgrade pip
pdm lock
pdm export -o requirements.txt
python -m pip install -r requirements.txt
python -m pip install .
- name: 'Run: pip-audit'
- name: "Run: pip-audit"
uses: pypa/[email protected]
with:
ignore-vulns: |
Expand Down
Loading

0 comments on commit a496197

Please sign in to comment.