mcp-qiskit-learn / README.md
Ludek Matyska
feat: add pre-commit ruff
40c13b8
|
raw
history blame
991 Bytes
metadata
title: Mcp Qiskit Learn
emoji: 🌍
colorFrom: pink
colorTo: blue
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: false
tags:
  - mcp-server-track

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Code Quality: pre-commit & Ruff

This project uses pre-commit and ruff to automatically check and format code before each commit.

Setup

  1. Create and activate the environment (if not already):
    uv venv mcp-qiskit-learn-env
    source mcp-qiskit-learn-env/bin/activate
    uv pip install -r requirements.txt
    uv pip install pre-commit
    
  2. Install the pre-commit hooks:
    pre-commit install
    

Usage

  • Hooks will run automatically on git commit.
  • To manually check all files:
    pre-commit run --all-files
    
  • Ruff will auto-fix and format Python code according to the configuration in .pre-commit-config.yaml.