Skip to content

Issue #64: Use exceptions instead of assertions #93

Issue #64: Use exceptions instead of assertions

Issue #64: Use exceptions instead of assertions #93

Workflow file for this run

name: Commit Checks
on: [push, pull_request]
jobs:
Black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
Ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/isort-action@v1
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Check Commit Format
uses: gsactions/commit-message-checker@v2
with:
pattern: 'Issue \#[0-9]+: .+'
checkAllCommitMessages: 'true'
error: 'Your first line has to have the format "Issue #XXX: Commit message".'
excludeDescription: 'true'
excludeTitle: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}
- name: Check Line Length
uses: gsactions/commit-message-checker@v2
with:
pattern: '.{1,72}'
error: 'The maximum line length of 72 characters is exceeded.'
excludeDescription: 'true'
excludeTitle: 'true'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}