diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a2680be..5cc93ec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,17 +13,14 @@ repos: - id: check-added-large-files args: ["--maxkb=500"] - id: check-merge-conflict - - id: detect-private-keys - id: mixed-line-ending args: ["--fix=lf"] - - id: no-commit-to-branch - args: ["--branch", "main", "--branch", "staging"] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.16 hooks: - - id: ruff - args: ["check", "--fix"] + - id: ruff-check + args: ["--fix"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy @@ -38,10 +35,4 @@ repos: rev: v8.24.0 hooks: - id: gitleaks - args: ["detect", "--source", ".", "--verbose"] - - - repo: https://github.com/ejcx/git-hound - rev: v1.2.0 - hooks: - - id: git-hound - args: ["--config", ".githound.yml"] + args: ["--verbose"] diff --git a/Makefile b/Makefile index 244e425..08de881 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ help: ## Show this help install: ## Install dependencies pip install -e ".[dev]" pip install -r requirements.txt + @command -v pre-commit >/dev/null 2>&1 && pre-commit install || echo " (pre-commit not installed; skipping hook install)" dev: ## Start dev server uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 @@ -46,4 +47,4 @@ ci: ## Full CI pipeline pytest tests/ -x -q -m "not integration" clean: ## Remove build artifacts - rm -rf dist build *.egg-info .pytest_cache .mypy_cache .ruff_cache \ No newline at end of file + rm -rf dist build *.egg-info .pytest_cache .mypy_cache .ruff_cache