-
Notifications
You must be signed in to change notification settings - Fork 166
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 1.61 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (68 loc) · 1.61 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
[project]
name = "todolist"
version = "1.0.0"
description = "SmartNotes - 智能笔记管理系统"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
# Runtime deps actually imported by the application.
# Lower bound for needed features + upper bound to guard against breaking
# majors; exact reproducible versions are pinned by uv.lock.
"markdown>=3.5,<4",
"pygments>=2.17,<3",
"networkx>=3.0,<4",
"pillow>=10.0,<13",
]
[project.optional-dependencies]
# Richer HTML Markdown preview; the app falls back to a tag renderer without it.
preview = ["tkhtmlview>=0.2"]
# Interactive knowledge-graph visualization; falls back to a text summary.
graph = ["matplotlib>=3.5"]
# Optional master-password content encryption.
crypto = ["cryptography>=42"]
# Optional cloud sync backends.
sync-webdav = ["requests>=2.25"]
sync-s3 = ["boto3>=1.26"]
[dependency-groups]
dev = [
"ruff>=0.5",
"pytest>=8",
"mypy>=1.8",
]
build = [
"pyinstaller>=6.0,<7",
"pyinstaller-hooks-contrib>=2024.0",
]
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple/"
default = true
[tool.ruff]
indent-width = 4
line-length = 110
[tool.ruff.lint]
# reference: https://docs.astral.sh/ruff/linter/#fixes
select = [
"F",
"E",
"N",
"I",
"W",
"PL",
"PERF",
]
ignore=[
"E731",
"PLR2004",
"PLR0913",
"E722"
]
[tool.ruff.lint.pylint]
max-nested-blocks = 4
[tool.mypy]
# Progressive typing: lenient defaults, tightened per-module over time.
python_version = "3.10"
ignore_missing_imports = true
warn_unused_ignores = false
warn_redundant_casts = true
[tool.pytest.ini_options]
testpaths = ["tests"]