-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (79 loc) · 2.78 KB
/
pyproject.toml
File metadata and controls
89 lines (79 loc) · 2.78 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
85
86
87
88
89
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = [
"/data",
"/twitch_indicator",
"/README.md",
"/LICENSE.txt",
"/LICENSE-zlib.txt",
]
[project]
name = "twitch-indicator"
version = "1.9"
description = "Twitch.tv indicator for Linux. Tracks your followed channels and notifies when they go live."
authors = [{ name = "buzz", email = "buzz@users.noreply.github.com" }]
license = "GPL-3.0-or-later"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aiofiles>=23.2.1",
"aiohttp>=3.9.5",
"pydantic>=2.7.4",
"PyGObject>=3.48.2",
]
[project.gui-scripts]
twitch-indicator = "twitch_indicator.__main__:main"
[project.urls]
Source = "https://github.com/buzz/twitch-indicator"
"Bug Tracker" = "https://github.com/buzz/twitch-indicator/issues"
[dependency-groups]
dev = [
"ruff>=0.12.0",
"ty>=0.0.38",
"PyGObject-stubs>=2.11.0",
]
[tool.uv]
override-dependencies = []
[tool.ruff]
line-length = 100
include = ["twitch_indicator/**/*.py"]
exclude = [".eggs", ".git", ".ruff_cache", ".venv"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401", # Opinions on Any type
"ARG002", # Unused method argument (callback signatures)
"B024", # ABC with no abstract methods
"COM812", # Trailing comma (conflicts with format)
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
"D401", # First line of docstring should be in imperative mood
"DTZ", # Naive datetime (handled by app logic)
"EM", # Exception must not use a string literal
"FBT", # Boolean-typed positional argument in function definition
"FIX", # Line contains fixme
"G004", # Logging statement uses f-string
"ISC001", # Implicit string concatenation (conflicts with format)
"N806", # Variable in function should be lowercase
"N818", # Exception name should end with Error
"PLR0913", # Too many arguments in function definition
"PLR2004", # Magic value used in comparison
"PTH", # Pathlib rules (GLib returns strings)
"RUF012", # Mutable class attribute (intentional for locks)
"S603", # subprocess call with shell=True
"SIM117", # Multiple with statements (locks must be nested)
"T201", # print found
"TID252", # Relative imports
"TRY003", # Long message outside exception definition
"TRY301", # Raise within try
"TRY400", # Error message not outside exception
]
[tool.ty.environment]
[tool.ty.rules]
unresolved-attribute = "warn"