forked from UCL-CCS/Nbed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (89 loc) · 2.06 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (89 loc) · 2.06 KB
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
89
90
91
92
93
94
95
96
97
98
99
[project]
name = "nbed"
version = "0.0.11"
description = "Projection-based embedding methods for reducing quantum simulation resource requirements."
authors = [
{ name = "Michael Williams de la Bastida", email = "michael.williams.20@ucl.ac.uk" },
{ name = "Alexis Ralli", email = "alexis.ralli.18@ucl.ac.uk" },
]
requires-python = ">=3.12, <4"
dependencies = [
"openfermion (>=1.1.0, <2.0.0)",
"PyYAML (>=6.0.0, <7.0.0)",
"qiskit-nature (>=0.7.0,<1.0.0)",
"pyscf (>=2.3.0, <3.0.0)",
"numpy>=2.0.0",
"pydantic>=2.11.7",
"pytest-xdist>=3.8.0",
]
[project.scripts]
nbed = "nbed.embed:cli"
[dependency-groups]
dev = [
"pre-commit>=4.0.1,<5",
"jupyter>=1.0.0,<2",
"pytest>=7.4.2, <9",
"poetry>=2.0.0,<3",
"pytest-cov>=6.0.0,<7",
"ruff>=0.8,<1",
"py3dmol>=2.4.2,<3",
"pyrefly>=0.36.1",
"pytest-watcher>=0.4.3",
"nb-clean>=4.0.1",
"ty>=0.0.13",
]
docs = [
"myst-nb>=1.3.0",
"myst-parser>=4.0.1",
"myst-sphinx-gallery>=0.3.0",
"nbsphinx>=0.9.0,<0.10",
"pydata-sphinx-theme>=0.16.1",
"Sphinx>=5.0.0, <9",
"sphinx-rtd-theme>=2.0.0,<4",
]
[tool.uv]
default-groups = [
"dev",
"docs",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
filterwarnings = [
#H5py throws a custom deprecation warning about default file mode
'ignore:.*Using default_file_mode.*instead:UserWarning',
# Lots of downstream deprecation warnings
'ignore::DeprecationWarning'
]
addopts="--show-capture=stderr"
testpaths = ["tests"]
[tool.ruff]
exclude = ["notebooks/", "docs/", "tests/"]
line-length = 88
indent-width = 4
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyrefly]
project-includes = ["**/*"]
project-excludes = [
"**/tests/**",
"**/node_modules",
"**/__pycache__",
"**/*venv/**/*",
]
[tool.ruff.lint]
select = [
"E4", "E7", "E9",
"F",
"D", #pydocstyle
"I", #isort
]
[tool.pytest-watcher]
now = false
clear = true
delay = 0.2
runner = "pytest"
runner_args = []
patterns = ["*.py"]
ignore_patterns = []