Skip to content

Commit

Permalink
Add precommit (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshemorad authored Dec 4, 2024
1 parent 3d88e0d commit 67d8712
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ name: Build and test HolmesGPT
on: [push, pull_request, workflow_dispatch]

jobs:
check:
name: Pre-commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]

build:
needs: check
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand Down
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.8.4
hooks:
- id: poetry-check
- id: poetry-lock
pass_filenames: false
args:
- --no-update
109 changes: 105 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pytest-xdist = "^3.6.1"
ruff = "^0.7.3"
braintrust = "^0.0.168"
autoevals = "^0.0.103"
pre-commit = "^4.0.1"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 67d8712

Please sign in to comment.