-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (42 loc) · 1.23 KB
/
pyproject.toml
File metadata and controls
50 lines (42 loc) · 1.23 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
[build-system]
requires = ["setuptools", "wheel"] #, "setuptools_rust"]
build-backend = "setuptools.build_meta"
[project]
name = "{{project_name}}"
description = "{{project_description}}"
version = "0.1.0"
authors = [{ name = "{{author_name}}" }]
requires-python = ">=3.9"
dependencies = [
"numpy",
"matplotlib",
"LovelyPlots",
# "qiskit",
# "qutip",
# "weylchamber",
]
[project.optional-dependencies]
dev = ["ipykernel", "pylatexenc", "ipywidgets", "pre-commit"]
format = ["pre-commit", "ruff"]
test = ["pytest"]
[tool.ruff]
target-version = "py312"
fix = true
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = ["D"]
ignore = ["D105"] # magic methods like __init__ don't need docstrings
[tool.ruff.lint.per-file-ignores]
"scripts/**" = ["D"]
"src/tests/**/*.py" = ["D1"]
"**/*.ipynb" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
# [[tool.setuptools-rust.ext-modules]]
# # Private Rust extension module to be nested into the Python package
# # https://github.com/PyO3/setuptools-rust?tab=readme-ov-file
# target = "{{project_name}}._accelerate"
# path = "crates/Cargo.toml"
# binding = "PyO3"
# [tool.distutils.bdist_wheel]
# py_limited_api = "cp39"