-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
44 lines (40 loc) · 964 Bytes
/
Copy pathpyproject.toml
File metadata and controls
44 lines (40 loc) · 964 Bytes
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
[project]
name = "sentiment-alpha"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"beautifulsoup4>=4.14.3",
"pandas>=2.3.3",
"plotly>=6.6.0",
"requests>=2.33.0",
"ruff>=0.15.8",
"streamlit>=1.55.0",
"torch>=2.11.0",
"transformers>=5.3.0",
"yfinance>=1.2.0",
]
[dependency-groups]
dev = [
"pytest>=9.0.2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
pythonpath = ["src", "."]
testpaths = ["test", "tests"] # 测试目录
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
]
# 注册自定义标记,消除警告
markers = [
"integration: marks tests that require network access",
"slow: marks tests that take longer than 5 seconds",
"core: marks core functionality tests",
"timezone: marks timezone handling tests"
]