Skip to content

Commit

Permalink
cicd: update precommit configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Nov 13, 2024
1 parent 5a9b87a commit bce963e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,26 @@ jobs:
- name: Check style
run: python3 -m ruff check . && python3 -m ruff format --check .

precommit_hooks:
runs-on: ubuntu-latest
strategy:
matrix:
hook:
- "end-of-file-fixer"
- "trailing-whitespace"
- "mixed-line-ending"
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- uses: pre-commit/action@v3.0.1
with:
extra_args: ${{ matrix.hook.args }} --all-files

docs:
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ repos:
- id: check-merge-conflict
- id: detect-aws-credentials
args: [ --allow-missing-credentials ]
- id: mixed-line-ending
args: [ --fix=lf ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
Expand Down

0 comments on commit bce963e

Please sign in to comment.