Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (104 loc) 路 2.58 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (104 loc) 路 2.58 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "daggr"
description = "A Python package"
authors = [
{ name = "Abubakar Abid", email = "abubakar@example.com" },
]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastapi>=0.115.0",
"gradio>=6.0.0",
"networkx>=3.0",
"uvicorn[standard]>=0.34.0",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/abidlabs/daggr"
repository = "https://github.com/abidlabs/daggr"
[project.optional-dependencies]
dev = [
"ruff==0.9.3",
"pytest>=8.0.0,<9.0.0",
"pytest-xdist>=3.0.0",
"playwright>=1.40.0",
]
[project.scripts]
daggr = "daggr.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["daggr"]
artifacts = [
"daggr/frontend/dist/",
"daggr/assets/",
]
exclude = [
"daggr/canvas-component/",
"daggr/frontend/node_modules/",
"daggr/frontend/src/",
"daggr/frontend/index.html",
"daggr/frontend/package.json",
"daggr/frontend/package-lock.json",
"daggr/frontend/vite.config.ts",
"daggr/frontend/svelte.config.js",
"daggr/frontend/tsconfig.json",
]
[tool.hatch.build.targets.sdist]
include = [
"daggr/**/*.py",
"daggr/**/*.pyi",
"daggr/py.typed",
"daggr/package.json",
"daggr/assets/*",
"daggr/frontend/dist/**/*",
"README.md",
"LICENSE",
]
exclude = [
"daggr/canvas-component/",
]
[tool.hatch.version]
path = "daggr/package.json"
pattern = ".*\"version\":\\s*\"(?P<version>[^\"]+)\""
[tool.pytest.ini_options]
addopts = "-n auto"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
"__pycache__",
"build",
"dist",
]
# Same as Black.
line-length = 88
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`)
select = ["E", "F", "I"]
# Ignore line length violations
ignore = ["E501"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Use single quotes for strings.
quote-style = "double"
# Indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"