24 lines
No EOL
711 B
YAML
24 lines
No EOL
711 B
YAML
name: precommit-action
|
|
on: [push, pull_request]
|
|
jobs:
|
|
linter_name:
|
|
name: runner / Pre-commit actions
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.13
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version-file: '.python-version'
|
|
|
|
- name: Setup annotations
|
|
uses: PennyDreadfulMTG/setup-linters@main
|
|
|
|
- name: Install Pre-commit
|
|
run: |
|
|
pip install pre-commit
|
|
|
|
- name: Run Pre-commit
|
|
run: |
|
|
pre-commit run --all-files --show-diff-on-failure |