-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (66 loc) · 1.93 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (66 loc) · 1.93 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
[project]
name = "yunohost-cli"
version = "0.1.0"
description = "A CLI for YunoHost!"
readme = "README.md"
authors = [
{ name = "YunoHost", email = "yunohost@yunohost.org" }
]
requires-python = ">=3.13"
dependencies = [
"httpx2[http2]>=2.11.0",
"packaging>=25.0",
"platformdirs>=4.0",
"prompt-toolkit>=3.0.51",
"pyyaml>=6.0",
"rich>=13.9.0",
"toml>=0.10",
]
[dependency-groups]
dev = [
"mypy",
"types-toml>=0.10",
"types-pyyaml>=6.0",
"ruff>=0.11.9",
]
[project.scripts]
yunohost-cli = "yunohost_cli:main"
ynh = "yunohost_cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
[tool.mypy]
follow_imports = "normal"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = false
strict = true
[tool.ruff]
line-length = 120
lint.select = ["ALL"]
lint.ignore = [
"C901", # is too complex
"COM812", # missing-trailing-comma
"CPY001", # Missing copyright notice at top of file
"D", # docstrings
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"ERA001", # Found commented-out code
"EXE001", # Shebang is present but file is not executable
"FIX002", # Line contains TODO, consider resolving the issue
"G004", # Logging statement uses f-string
"LOG015", # calls on root logger
"PLR", # Code complexity
"RET504", # Unnecessary assignment to `value` before `return` statement
"S101", # Use of `assert` detected
"T201", # `print` found
"TD", # TODO format
"TRY003", # Avoid specifying long messages outside the exception class
"TRY300", # Consider moving this statement to an `else` block
"TRY400", # Use `logging.exception` instead of `logging.error`
]
[tool.ty.rules]
all = "error"