Spaces:
Sleeping
Sleeping
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`. | |