forked from linkedin/Liger-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (73 loc) · 1.79 KB
/
pyproject.toml
File metadata and controls
86 lines (73 loc) · 1.79 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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "liger_kernel"
version = "0.6.2"
description = "Efficient Triton kernels for LLM Training"
urls = { "Homepage" = "https://github.com/linkedin/Liger-Kernel" }
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
dynamic = ["dependencies", "optional-dependencies"]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["liger_kernel*"]
namespaces = false
[tool.pytest.ini_options]
pythonpath = ["src", "."]
asyncio_mode = "auto"
log_cli = true
log_cli_level = "INFO"
addopts = [
"--cov=src/liger_kernel",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-config=pyproject.toml",
"--durations=0"
]
python_files = "test_*.py"
testpaths = ["test/"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src/liger_kernel"]
# xdist uses subprocesses; "multiprocessing" is a safe concurrency choice
concurrency = ["multiprocessing"]
[tool.coverage.paths]
liger_kernel = [
"src/liger_kernel",
"*/site-packages/liger_kernel"
]
[tool.coverage.report]
omit = ["test/*"]
show_missing = true
skip_covered = false
[tool.ruff]
line-length = 120
target-version = "py310"
respect-gitignore = true
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
ignore = ["E501", "B006", "E731", "A002", "E203"]
exclude = [
".git",
"__pycache__",
"benchmark_internal/others",
".venv",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["liger_kernel"]
force-single-line = true
lines-between-types = 1