Skip to content

chore(deps): bump sphinx from 7.0.1 to 7.1.0 #263

chore(deps): bump sphinx from 7.0.1 to 7.1.0

chore(deps): bump sphinx from 7.0.1 to 7.1.0 #263

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@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
egress-policy: audit
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
with:
python-version: '3.x'
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@3ea6ae190baf489ba007f7c92608f33ce20ef04a