Skip to main content
Glama
.pre-commit-config.yaml1.58 kB
# Pre-commit hooks for development - focuses on auto-fixable issues # For strict checking use: pre-commit run --config .pre-commit-config-strict.yaml --all-files repos: # Ruff - Fast Python linter and formatter - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.7.1 hooks: # Run the linter with auto-fix - id: ruff name: ruff lint args: [--fix, --exit-non-zero-on-fix] types_or: [python, pyi] # Run the formatter - id: ruff-format name: ruff format types_or: [python, pyi] # General code quality hooks - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: # Check for files that would conflict on case-insensitive filesystems - id: check-case-conflict # Check for files that contain merge conflict strings - id: check-merge-conflict # Check yaml files for parseable syntax - id: check-yaml exclude: ^(.github/|docs/|examples/) # Check json files for parseable syntax - id: check-json # Check toml files for parseable syntax - id: check-toml # Ensure files end with newline - id: end-of-file-fixer exclude: ^(\.svg$|\.png$|\.jpg$|\.jpeg$|\.gif$) # Remove trailing whitespace - id: trailing-whitespace exclude: ^(\.svg$|\.png$|\.jpg$|\.jpeg$|\.gif$) # Check for debugger imports and py37+ breakpoint() calls - id: debug-statements # Check python ast - id: check-ast # Global configuration default_stages: [pre-commit] fail_fast: false

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/washyu/mcp_python_server'

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