-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
52 lines (44 loc) · 1.02 KB
/
Copy pathpyproject.toml
File metadata and controls
52 lines (44 loc) · 1.02 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
[project]
name = "tiny-flash-attention"
version = "0.1.0"
description = "A minimal implementation of Flash Attention using Triton"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"torch>=2.7.1",
"triton>=3.3.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[dependency-groups]
dev = [
"pytest>=8.4.1",
]
[tool.pytest.ini_options]
# Pytest configuration
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Add custom markers
markers = [
"benchmark: marks tests as benchmark tests",
"slow: marks tests as slow running",
"gpu: marks tests that require GPU",
]
# Filter warnings
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
# Minimum version
minversion = "6.0"
# Add options
addopts = [
"-v", # verbose output
"--tb=short", # shorter traceback format
"--strict-markers", # strict marker usage
]