-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
79 lines (66 loc) · 1.75 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
[build-system]
requires = ["maturin>=1,<2"]
build-backend = "maturin"
[project]
name = "agp-bindings"
version = "0.2.0"
description = "AGP Rust bindings for Python"
requires-python = ">=3.9, <4.0"
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"Development Status :: 3 - Alpha",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
# Specify the Python versions you support here.
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Repository = "https://github.com/agntcy/agp"
Issues = "https://github.com/agntcy/agp/issues"
Changelog = "https://github.com/agntcy/agp/blob/main/data-plane/python-bindings/CHANGELOG.md"
[dependency-groups]
building = [
"maturin",
]
testing = [
"pytest",
"pytest-asyncio",
]
linting = [
'griffe',
'pyright',
'ruff',
'mypy',
]
[tool.uv]
default-groups = [
"building",
"testing",
"linting",
]
[tool.maturin]
bindings = 'pyo3'
features = ["pyo3/extension-module"]
module-name = "agp_bindings._agp_bindings"
[tool.ruff.format]
quote-style = 'double'
[tool.pytest.ini_options]
testpaths = 'tests'
[tool.ruff]
line-length = 120
target-version = 'py39'
extend-exclude = ["agp_bindings/_agp_bindings.pyi"]
[tool.ruff.lint]
extend-select = ['Q', 'RUF100', 'C90', 'I', 'UP']
extend-ignore = [
'E721', # using type() instead of isinstance() - we use this in tests
]
flake8-quotes = {inline-quotes = 'double', multiline-quotes = 'double'}
mccabe = { max-complexity = 13 }
isort = { known-first-party = ['agp_bindings', 'tests'] }