-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
88 lines (83 loc) · 2.01 KB
/
pyproject.toml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[project]
name = ""
version = ""
description = ""
authors = [
{name = "QuEra Computing Inc.", email = "info@quera.com"},
]
dependencies = [
"mkdocs>=1.5.1",
"mkdocs-material>=9.1.21",
"mkdocstrings[python]>=0.22.0",
"mkdocs-minify-plugin>=0.7.0",
"mkdocs-jupyter>=0.24.2",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.0",
"mike>=1.1.2",
"bloqade>=0.15.4",
"matplotlib>=3.8.0",
"neoteroi-mkdocs>=1.0.4",
"numpy>=1.25.2",
]
requires-python = ">=3.10,<3.13"
license = {text = "MIT"}
[tool.black]
line-length = 88
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py310"
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"twine>=4.0.2",
"ipython>=8.12.0",
"black>=23.3.0",
"pytest>=7.3.1",
"mypy>=1.2.0",
"ipykernel>=6.22.0",
"jupyter>=1.0.0",
"ruff>=0.0.264",
"pre-commit>=3.3.1",
"coverage>=7.2.5",
"jupytext>=1.14.5",
"pytest-recording>=0.12.2",
"vcrpy==4.4.0",
]
[tool.pdm.scripts]
_.env_file = "./.env"
upload = "python -m twine upload -r bloqade dist/*"
build = {cmd = "pdm build"}
publish = {composite = ["build", "upload"]}
test = {shell = "git clean -f && pytest tests docs/examples/*.py"}
coverage = {shell = "git clean -f && coverage run -m pytest tests/ docs/examples/*.py && coverage report"}
coverage-html = {shell = "git clean -f && coverage run -m pytest tests/ docs/examples/*.py && coverage html"}
doc = {cmd = "mkdocs serve"}
doc_build = {cmd = "mkdocs build"}
doc_deploy = {cmd = "pdm mike deploy --push --update-aliases dev"}
jupytext = {cmd = "jupytext --sync docs/examples/*.py"}
[tool.jupytext]
formats = "ipynb,py:percent"
hide_notebook_metadata = false