From 9eecf352a46be1b01eb3bc0f956e39c73d6c1f43 Mon Sep 17 00:00:00 2001 From: CI-DEV <154627941+IlumCI@users.noreply.github.com> Date: Wed, 23 Jul 2025 15:07:59 +0300 Subject: [PATCH] Update setup.sh --- scripts/setup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index 6a8ebcad..cc6e04c2 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -88,6 +88,17 @@ print_success "All dependencies installed successfully" # Activate virtual environment and run additional setup print_status "Setting up development tools..." +# Setup pre-commit hooks +print_status "Installing pre-commit hooks..." +poetry run pre-commit install +poetry run pre-commit install --hook-type commit-msg + +print_success "Pre-commit hooks installed" + +# Run pre-commit on all files to ensure everything is set up correctly +print_status "Running pre-commit on all files (this may take a while on first run)..." +poetry run pre-commit run --all-files || print_warning "Some pre-commit checks failed - this is normal on first setup" + # Create .env file if it doesn't exist if [ ! -f ".env" ]; then print_status "Creating .env file template..."