chore: Makefile + pre-commit hook#14
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Добавлено
make check(тесты + линт),make build,make clean,make installruff 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