Skip to content

Commit

Permalink
Fix up pre-commit lint (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Oct 27, 2024
1 parent 03e6093 commit 8384c76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/linters/codespell.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Donn
Donn
17 changes: 8 additions & 9 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
---
name: Pre-commit

on: [push, pull_request]

jobs:
pre-commit:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.13' # Specify your Python version

- name: Set Python Version Hash
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV

- name: Cache pre-commit
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

0 comments on commit 8384c76

Please sign in to comment.