Skip to content

chore: update SBOM for Python 3.10 #4709

chore: update SBOM for Python 3.10

chore: update SBOM for Python 3.10 #4709

Workflow file for this run

name: Linting
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linting:
name: Linting
runs-on: ubuntu-22.04
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to create a PR
strategy:
fail-fast: false
matrix:
tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint', 'mypy']
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: '3.11'
cache: 'pip'
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install --upgrade pre-commit
pre-commit install
- name: Run ${{ matrix.tool }} using pre-commit
if: ${{ matrix.tool != 'gitlint' }}
run: |
pre-commit run ${{ matrix.tool }} --all-files
- name: Run gitlint
env:
TITLE: ${{ github.event.pull_request.title }}
if: ${{ github.event_name == 'pull_request' && matrix.tool == 'gitlint' }}
run: |
python -m pip install --upgrade gitlint
echo "$TITLE" | gitlint
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d