-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
129 lines (114 loc) · 2.76 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[build-system]
requires = ["maturin>=1,<2"]
build-backend = "maturin"
[project]
name = "fastflow"
# Must be consistent with Cargo.toml
version = "0.1.0"
description = "Rust binding of generalized and pauli flow finding algorithms."
license = { file = "LICENSE" }
readme = "README.md"
authors = [
{ name = "S.S.", email = "66886825+EarlMilktea@users.noreply.github.com" },
]
maintainers = [
{ name = "S.S.", email = "66886825+EarlMilktea@users.noreply.github.com" },
{ name = "thierry-martinez", email = "thierry.martinez@inria.fr" },
{ name = "Shinichi Sunami", email = "shinichi.sunami@gmail.com" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Physics",
"Typing :: Typed",
]
requires-python = ">=3.8,<3.14"
dependencies = ["networkx"]
[project.optional-dependencies]
dev = ["mypy", "pyright", "pytest", "pytest-cov", "ruff", "types-networkx"]
doc = ["furo", "sphinxcontrib-bibtex", "sphinx"]
[tool.maturin]
exclude = [
"Pipfile",
"docs/**",
"rustfmt.toml",
"tests/**",
".github/**",
".gitignore",
".nojekyll",
]
features = ["pyo3/extension-module"]
module-name = "fastflow._impl"
python-source = "python"
[tool.mypy]
python_version = "3.8"
strict = true
files = ["docs/source/conf.py", "python", "tests"]
[tool.ruff]
extend-include = ["*.ipynb"]
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Conflicts with ruff format
"COM812",
"COM819",
"D206",
"D300",
"E111",
"E114",
"E117",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
# Not necessary for this project
"AIR",
"ASYNC",
"DJ",
"PD",
# Manually-disabled (lints)
"CPY",
"ERA",
"FBT",
"FIX",
# Manually-disabled (rules)
"ANN10", # missing-type-self/cls (deprecated)
"D105", # undocumented-magic-method
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"docs/**/*.py" = [
"D1", # undocumented-XXX
"INP",
]
"examples/**/*.py" = [
"INP",
"S101", # assert
]
"tests/*.py" = [
"D1", # undocumented-XXX
"PLR2004", # magic-value-comparison
"S101", # assert
]
[tool.pytest.ini_options]
addopts = ["--cov=./python", "--cov-report=term"]
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:"]