Issue #64: Use exceptions instead of assertions #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |