Skip to content

Commit

Permalink
Add automated checks for pre-commit through GitHub Actions (#56)
Browse files Browse the repository at this point in the history
* update pre-commit checks

* add pre-commit github actions check

* update formatting from pre-commit

* move pre-commit checks to run-tests

* update pre-commit action version

* reupdate pre-commit versions

* update pre-commit deps
  • Loading branch information
d33bs authored Dec 5, 2024
1 parent d7cf0c1 commit 46ffbc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
branches: [main]

jobs:
run_pre_commit_checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: pre-commit/[email protected]
run_tests:
strategy:
matrix:
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
# Check for files that contain merge conflict strings.
- id: check-merge-conflict
Expand All @@ -17,13 +17,13 @@ repos:
# This hook checks yaml files for parseable syntax.
- id: check-yaml
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.2.0
rev: v0.8.2
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/python/black
rev: 24.1.1
rev: 24.10.0
hooks:
- id: black
language_version: python3

0 comments on commit 46ffbc6

Please sign in to comment.