-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (46 loc) · 1.21 KB
/
pyproject.toml
File metadata and controls
53 lines (46 loc) · 1.21 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
[project]
name = "xiaohongshu-skills"
version = "0.1.0"
description = "小红书自动化 Skills,基于 CDP 浏览器自动化"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
dependencies = [
"requests>=2.28.0",
"websockets>=12.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.9.0",
"pytest>=8.0",
]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"E402", # module-level imports not at top (needed for sys.path manipulation)
"RUF001", # ambiguous unicode characters (Chinese punctuation is intentional)
"RUF002", # ambiguous unicode in docstrings (Chinese punctuation is intentional)
"RUF003", # ambiguous unicode in comments (Chinese punctuation is intentional)
]
[tool.ruff.lint.per-file-ignores]
[tool.ruff.lint.isort]
known-first-party = ["xiaohongshu_skills"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[dependency-groups]
dev = [
"pytest>=9.0.2",
]