Skip to content

Commit

Permalink
ci: precommit checks for poetry TOML and lock (#526)
Browse files Browse the repository at this point in the history
* ci: precommit poetry checks for toml and lock

* test: add poetry lock to ensure this is working

* fix: specify python version in pre-commit config

* fix: skip poetry lock in remote
  • Loading branch information
d0choa authored Mar 7, 2024
1 parent 8b865fe commit a3d7614
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 122 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
default_language_version:
python: python3.10
ci:
autoupdate_commit_msg: "chore: pre-commit autoupdate"
autofix_commit_msg: "chore: pre-commit auto fixes [...]"
skip: [poetry-lock]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
Expand Down Expand Up @@ -99,3 +102,10 @@ repos:
rev: 0.4.1
hooks:
- id: pydoclint

- repo: https://github.com/python-poetry/poetry
rev: "1.8.2"
hooks:
- id: poetry-check
- id: poetry-lock
args: ["--no-update"]
Loading

0 comments on commit a3d7614

Please sign in to comment.