-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (102 loc) · 2.47 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
[project]
name = "nanoflow"
dynamic = ["version"]
description = "A simple and efficient workflow framework for Python"
authors = [{ name = "Zhan Rongrui", email = "[email protected]" }]
dependencies = [
"loguru>=0.7.0",
"networkx>=3.0",
"pydantic>=2.0.0",
"toml>=0.10.0",
"rich>=13.8.0",
"typer>=0.12.5",
"textual>=0.81.0",
]
requires-python = ">=3.12"
readme = "README.md"
license = { text = "GPL-3.0" }
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Typing :: Typed",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
[project.optional-dependencies]
server = ["fastapi>=0.115.0", "uvicorn>=0.30.6"]
plot = ["matplotlib>=3.9.0"]
[project.urls]
Homepage = "https://github.com/zrr1999/nanoflow.git"
Repository = "https://github.com/zrr1999/nanoflow.git"
[project.scripts]
nanoflow = "nanoflow.__main__:app"
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# Isort
"I",
# Pyupgrade
"UP",
# Flake8
"B",
"C4",
"YTT",
"TID",
"PTH",
# Pygrep-hooks
"PGH",
# Ruff-specific rules
"RUF",
]
ignore = ["F841", "PGH003", "UP038", "B008", "RUF001", "RUF003"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I002"]
[tool.ruff.lint.isort]
known-first-party = ["recognize"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pyright]
includes = ["nanoflow", "tests"]
typeCheckingMode = "standard"
reportPrivateImportUsage = false
[tool.pdm.version]
source = "scm"
write_to = "nanoflow/__version__.py"
write_template = "__version__ = '{}'"
[tool.pdm.build]
includes = ["nanoflow"]
source-includes = ["tests", "README.md"]
[tool.uv]
dev-dependencies = [
"ruff",
"xdoctest",
"pytest",
"pytest-cov",
"pytest-codspeed",
"pytest-asyncio",
]
[tool.coverage.report]
exclude_also = [
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"