Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Jan 3, 2025
1 parent 79d6a79 commit 527e0d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable

check-file-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Check header
run: python ./check_header.py
shell: bash
- uses: pre-commit/[email protected]

test:
runs-on: ${{ matrix.os }}
Expand Down
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
hooks:
- id: black
- repo: local
hooks:
- id: check-headers
name: check headers
language: script
entry: check_header.py
pass_filenames: false
require_serial: true
types: [python]

0 comments on commit 527e0d2

Please sign in to comment.