Skip to content

Commit 423d1f5

Browse files
codebydivineclaude
andcommitted
build: regenerate poetry.lock after pyproject.toml migration and use standarized pre-commit config
- Update poetry.lock to match new Poetry configuration - Ensure dependency resolution is consistent with pure Poetry setup 🤖 Generated with [Claude Code](https://claude.ai/code) build: regenerate poetry.lock after pyproject.toml migration - Update poetry.lock to match new Poetry configuration - Ensure dependency resolution is consistent with pure Poetry setup 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e615270 commit 423d1f5

File tree

2 files changed

+48
-26
lines changed

2 files changed

+48
-26
lines changed

.pre-commit-config.yaml

Lines changed: 47 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,53 @@
1-
# See https://pre-commit.com for more information
1+
# DIVINE Standardized Pre-commit Configuration
2+
# Uses Poetry for all Python tools to ensure consistent environments
3+
# across development, pre-commit hooks, and CI/CD pipelines
4+
#
5+
# To apply to a repository:
6+
# 1. Copy this file to .pre-commit-config.yaml in the repo root
7+
# 2. Run: pre-commit install --overwrite
8+
# 3. Test: pre-commit run --all-files
9+
210
repos:
3-
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.12.4
11+
- repo: local
512
hooks:
6-
# Run the linter
7-
- id: ruff
8-
args: [--fix]
9-
# Run the formatter
13+
# Ruff linting with auto-fix
14+
- id: ruff-check
15+
name: ruff-check
16+
entry: poetry run ruff check --fix
17+
language: system
18+
types: [python]
19+
require_serial: false
20+
21+
# Ruff formatting
1022
- id: ruff-format
23+
name: ruff-format
24+
entry: poetry run ruff format
25+
language: system
26+
types: [python]
27+
require_serial: false
28+
29+
# MyPy type checking
30+
- id: mypy
31+
name: mypy
32+
entry: poetry run mypy
33+
language: system
34+
types: [python]
35+
files: ^src/
36+
args: [--ignore-missing-imports]
37+
require_serial: false
38+
39+
# Bandit security scanning
40+
- id: bandit
41+
name: bandit
42+
entry: poetry run bandit
43+
language: system
44+
types: [python]
45+
args: ["-c", "pyproject.toml"]
46+
require_serial: false
1147

48+
# Standard file checks (these don't need Poetry)
1249
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: 582b9c66e0791980685c8b80bb11e6a3df1a06ef # pragma: allowlist secret
50+
rev: v4.6.0
1451
hooks:
1552
- id: trailing-whitespace
1653
- id: end-of-file-fixer
@@ -20,25 +57,10 @@ repos:
2057
- id: check-toml
2158
- id: check-merge-conflict
2259
- id: debug-statements
23-
language_version: python3.13
24-
25-
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: v1.17.0
27-
hooks:
28-
- id: mypy
29-
additional_dependencies: [types-requests, divine-typed-requests==0.1.10, divine-type-enforcer==0.1.8, httpx, anyio]
30-
args: [--ignore-missing-imports]
31-
files: ^src/
32-
33-
- repo: https://github.com/PyCQA/bandit
34-
rev: 5a820865d7041564c0d7c576840dc272835dfa0d # pragma: allowlist secret
35-
hooks:
36-
- id: bandit
37-
args: ["-c", "pyproject.toml"]
38-
additional_dependencies: ["bandit[toml]"]
3960

61+
# Secret detection
4062
- repo: https://github.com/Yelp/detect-secrets
41-
rev: 50119d658ab48021cad234fc5c8d3253263b2ec0 # pragma: allowlist secret
63+
rev: v1.5.0
4264
hooks:
4365
- id: detect-secrets
4466
args: ['--baseline', '.secrets.baseline']

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)