Skip to content

chore: Makefile + pre-commit hook#14

Merged
VasilevNStas merged 1 commit into
masterfrom
feat/makefile-hooks
Jun 25, 2026
Merged

chore: Makefile + pre-commit hook#14
VasilevNStas merged 1 commit into
masterfrom
feat/makefile-hooks

Conversation

@VasilevNStas

Copy link
Copy Markdown
Owner

Добавлено

  • Makefilemake check (тесты + линт), make build, make clean, make install
  • pre-commit hook (.githooks/pre-commit) — ruff check перед каждым коммитом
  • make install автоматически включает хуки через git config core.hooksPath .githooks

Как пользоваться

pip install -e .
Obtaining file:///Users/vstas/AI_Projects/opencode-db
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Checking if build backend supports build_editable: started
Checking if build backend supports build_editable: finished with status 'done'
Getting requirements to build editable: started
Getting requirements to build editable: finished with status 'done'
Preparing editable metadata (pyproject.toml): started
Preparing editable metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: opencode-db
Building editable for opencode-db (pyproject.toml): started
Building editable for opencode-db (pyproject.toml): finished with status 'done'
Created wheel for opencode-db: filename=opencode_db-0.7.0-0.editable-py3-none-any.whl size=5329 sha256=1a546232cbab84951bfa15c52d46aa63791562238ac3e098e4cf04ebeb1f3426
Stored in directory: /private/var/folders/lk/_16sqz8n4gvf25d3td6wgn4h0000gn/T/pip-ephem-wheel-cache-cqsvd2ym/wheels/2e/11/97/7fab47583701b36e445c62ec1f1b0d4fa53c7ed9c3240805ee
Successfully built opencode-db
Installing collected packages: opencode-db
Attempting uninstall: opencode-db
Found existing installation: opencode-db 0.6.2
Uninstalling opencode-db-0.6.2:
Successfully uninstalled opencode-db-0.6.2
Successfully installed opencode-db-0.7.0
git config core.hooksPath .githooks
python -m ruff check .
All checks passed!
python -m pytest tests/ -q
........................................................................ [ 38%]
........................................................................ [ 76%]
............................................ [100%]
188 passed in 0.52s
rm -rf dist/ build/ *.egg-info pycache .ruff_cache .pytest_cache
find . -type d -name pycache -exec rm -rf {} + 2>/dev/null || true
python -m build

- Makefile: check, test, lint, build, clean, install, install-rich
- pre-commit hook (.githooks/pre-commit): ruff check on every commit
- make install sets core.hooksPath automatically
@VasilevNStas VasilevNStas merged commit b556222 into master Jun 25, 2026
2 checks passed
@VasilevNStas VasilevNStas deleted the feat/makefile-hooks branch June 25, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant