File size: 991 Bytes
cb34281
 
 
 
 
 
 
 
 
22cc337
cb34281
 
 
40c13b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
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](https://pre-commit.com/) and [ruff](https://docs.astral.sh/ruff/) to automatically check and format code before each commit.

### Setup
1. Create and activate the environment (if not already):
   ```sh
   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:
   ```sh
   pre-commit install
   ```

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