-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (80 loc) · 1.67 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (80 loc) · 1.67 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
[project]
name = "whatsapp-local-viewer"
version = "0.1.0"
description = "Local read-only Flask app to browse WhatsApp backup chats and media."
readme = "README.md"
requires-python = "==3.14.*"
dependencies = [
"ruff",
"ty",
"flask",
]
# https://docs.astral.sh/ruff/configuration
[tool.ruff]
exclude = [
".git",
"__pycache__",
"mypy_cache",
"pytest_cache",
".ruff_cache",
".vscode",
".idea",
".venv",
"venv",
"env",
"*.egg-info",
"dist",
"build",
]
line-length = 120
indent-width = 4
target-version = "py314"
[tool.ruff.lint]
ignore = [
"B006",
"B011",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D201",
"D202",
"D205",
"D209",
"D212",
"D301",
"D400",
"D401",
"D404",
"D407",
"D415",
"D417",
"S110",
"T201",
"D213",
"D203",
"D413",
"E266",
]
select = ["B", "C", "D", "E", "EXE", "F", "I", "PIE", "PT", "S", "T", "W"]
# Enable the isort rules.
extend-select = ["I"]
# Preview mode enables a collection of newer lint rules, fixes, and formatter style changes that are considered experimental or unstable,
# https://docs.astral.sh/ruff/preview/
preview = true
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["app", "config", "db", "media", "models", "repository", "utils"]