-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (83 loc) · 1.81 KB
/
pyproject.toml
File metadata and controls
92 lines (83 loc) · 1.81 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
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm>=6.0", "torch"]
build-backend = "setuptools.build_meta"
[project]
name = "cuda-linear-attention"
dynamic = ["version"]
description = "cuLA CUDA extension"
readme = "README.md"
authors = [ { name = "cula contributors" } ]
requires-python = ">=3.10"
dependencies = [
"nvidia-cutlass-dsl==4.4.2",
"apache-tvm-ffi==0.1.9",
]
license = "Apache-2.0"
[project.optional-dependencies]
dev = [
"pytest",
"matplotlib",
"pandas",
"build",
"twine",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["cula", "cula.*"]
[tool.ruff]
target-version = "py312"
line-length = 127
exclude = [
"csrc/",
"third_party/",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"C4", # flake8-comprehensions
"TCH", # flake8-type-checking
"T", # flake8-debugger
]
ignore = [
"E501",
"E741",
"B023",
"B006",
"B007",
"B008",
"B028",
"B904",
"B905",
"C408",
"C416",
"C417",
"T201",
"TC002",
"TC003",
"SIM102",
"SIM108",
"SIM118",
"SIM211",
"COM812",
]
[tool.ruff.lint.isort]
known-first-party = ["cula"]
force-sort-within-sections = false
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"cula/_version.py" = ["UP007"]
# TODO: fix undefined names (exp_g, chunk_kda_bwd_dqkwg) — WIP code
"cula/ops/kda_fully_fused_wip.py" = ["F821"]
"cula/kda/blackwell_fused_fwd.py" = ["F821"]
[tool.setuptools_scm]
# write generated version into package for runtime access
write_to = "cula/_version.py"
# add a date-based local suffix when needed
local_scheme = "node-and-date"
# fallback for non-git sources
fallback_version = "0.1.0"