-
Notifications
You must be signed in to change notification settings - Fork 226
/
pyproject.toml
88 lines (77 loc) · 2.08 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
[build-system]
requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"
[project]
name = "amazon-braket-examples"
version = "0.0.1"
description = 'Example notebooks that show how to apply quantum computing with Amazon Braket.'
readme = "README.md"
requires-python = ">=3.9"
license = "apache-2.0"
keywords = []
authors = [{name = "Amazon Web Services"},]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["dependencies"]
[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]
[tool.hatch.build.targets.wheel]
only-packages = true
include = [
"examples/*",
]
[project.urls]
Documentation = "https://github.com/amazon-braket/amazon-braket-examples#readme"
Issues = "https://github.com/amazon-braket/amazon-braket-examples/issues"
Source = "https://github.com/amazon-braket/amazon-braket-examples"
[tool.hatch.envs.default]
dependencies = [
"jupyter",
"nbconvert",
"pytest",
"pytest-rerunfailures",
"pytest-xdist[psutil]",
"testbook",
]
[tool.hatch.envs.default.scripts]
test = """
python -m ipykernel install --user --name "conda_braket" --display-name "conda_braket"
pytest --dist worksteal -n logical -ra -v --durations=0 test/
"""
[tool.hatch.envs.lint]
detached = true
dependencies = [
"ruff",
]
[tool.hatch.envs.lint.scripts]
style = [
"ruff check {args:.}",
]
fmt = [
"ruff format {args:.}",
"style",
]
[[tool.hatch.envs.all.matrix]]
python = ["3.9", "3.10", "3.11"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
target-version = "py39"
line-length = 100
lint.isort = { known-first-party = [
"braket",
] }
lint.extend-select = ["I", "PERF"]
lint.preview = true
lint.ignore = ["E722"]