mirror of
https://github.com/kristoferssolo/grovers-visualizer.git
synced 2025-10-21 20:10:35 +00:00
- Extract Grover iteration logic into simulation.py (grover_evolver generator) - Move all Matplotlib setup/update/teardown into visualization.py (GroverVisualizer)
96 lines
1.9 KiB
TOML
96 lines
1.9 KiB
TOML
[project]
|
||
name = "grovers-visualizer"
|
||
version = "0.4.3"
|
||
description = "A tiny Python package that steps through Grover’s Search algorithm."
|
||
readme = "README.md"
|
||
requires-python = ">=3.10"
|
||
authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }]
|
||
license = { file = "LICENSE" }
|
||
dependencies = [
|
||
"numpy==2.2.4",
|
||
"pyqt6==6.9.0",
|
||
"qiskit-aer==0.17.0",
|
||
"qiskit[visualization]==2.0.0",
|
||
]
|
||
[project.urls]
|
||
Source = "https://github.com/kristoferssolo/grovers-visualizer"
|
||
Tracker = "https://github.com/kristoferssolo/grovers-visualizer/issues"
|
||
|
||
[project.scripts]
|
||
grovers-visualizer = "grovers_visualizer.main:main"
|
||
|
||
[project.optional-dependencies]
|
||
ui = ["dearpygui==2.0.0"]
|
||
|
||
[dependency-groups]
|
||
dev = ["mypy~=1.15", "ruff~=0.11"]
|
||
|
||
[build-system]
|
||
requires = ["hatchling"]
|
||
build-backend = "hatchling.build"
|
||
|
||
[tool.hatch.build.targets.wheel]
|
||
packages = ["src/grovers_visualizer"]
|
||
|
||
[tool.mypy]
|
||
mypy_path = "src"
|
||
check_untyped_defs = true
|
||
disallow_any_generics = true
|
||
ignore_missing_imports = true
|
||
no_implicit_optional = true
|
||
no_implicit_reexport = true
|
||
show_error_codes = true
|
||
strict_equality = true
|
||
warn_redundant_casts = true
|
||
warn_return_any = true
|
||
warn_unreachable = true
|
||
warn_unused_configs = true
|
||
|
||
[tool.ruff]
|
||
show-fixes = true
|
||
line-length = 120
|
||
indent-width = 4
|
||
target-version = "py313"
|
||
|
||
[tool.ruff.lint]
|
||
extend-select = [
|
||
"B",
|
||
"BLE",
|
||
"C4",
|
||
"ERA",
|
||
"I",
|
||
"ICN",
|
||
"INP",
|
||
"ISC",
|
||
"N",
|
||
"NPY",
|
||
"PGH",
|
||
"PIE",
|
||
"PT",
|
||
"Q",
|
||
"RET",
|
||
"RSE",
|
||
"RUF",
|
||
"S",
|
||
"SIM",
|
||
"T20",
|
||
"TCH",
|
||
"TID",
|
||
"YTT",
|
||
]
|
||
preview = true
|
||
fixable = ["ALL"]
|
||
ignore = ["E741", "ISC001", "T201", "T203"]
|
||
|
||
[tool.ruff.lint.extend-per-file-ignores]
|
||
# Disable for all files in the tests directory
|
||
"**/tests/*" = ["S101", "S106", "PLR2004"]
|
||
|
||
[tool.ruff.format]
|
||
quote-style = "double"
|
||
indent-style = "space"
|
||
skip-magic-trailing-comma = false
|
||
line-ending = "auto"
|
||
docstring-code-format = true
|
||
docstring-code-line-length = 40
|