Skip to main content
Glama
sync-dev-tools.shโ€ข996 B
#!/bin/bash # Script to sync development tool versions between IDE and pre-commit set -e echo "๐Ÿ”ง Syncing development tool versions..." # Get current local tool versions echo "๐Ÿ“‹ Current local versions:" echo " Ruff: $(ruff --version)" echo " Black: $(black --version)" echo " MyPy: $(mypy --version)" # Update pre-commit hooks to latest versions echo "" echo "๐Ÿš€ Updating pre-commit hooks..." pre-commit autoupdate # Reinstall hooks echo "" echo "๐Ÿ”จ Reinstalling pre-commit hooks..." pre-commit install # Run a test to ensure everything works echo "" echo "๐Ÿงช Testing pre-commit hooks..." pre-commit run --all-files || { echo "โŒ Pre-commit hooks failed. Please review the output above." exit 1 } echo "" echo "โœ… Development tools are now in sync!" echo "" echo "๐Ÿ’ก Tips:" echo " - Your IDE and pre-commit now use the same tool versions" echo " - Both use Black for formatting, Ruff for linting/imports" echo " - Run this script periodically to stay updated"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssimonitch/mcp-pyboy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server