Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (100 loc) · 3.44 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (100 loc) · 3.44 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[project]
name = "modus"
version = "2.0.0"
description = "A hackable shell for Hyprland, built with Fabric"
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.13"
authors = [
{ name = "SANKALP", email = "sankalp@modus.dev" },
]
keywords = ["hyprland", "wayland", "shell", "fabric", "desktop"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.13",
"Topic :: Desktop Environment",
]
dependencies = [
"fabric",
"keyring==25.7.0",
"keyrings-alt==5.0.2",
"psutil==7.2.2",
"python-pam==2.1.0",
"tomlkit==0.15.1",
]
[project.urls]
Homepage = "https://github.com/S4NKALP/Modus"
Documentation = "https://github.com/S4NKALP/Modus/tree/main/docs"
Repository = "https://github.com/S4NKALP/Modus"
Issues = "https://github.com/S4NKALP/Modus/issues"
Discord = "https://discord.gg/tRFxkbQ3Zq"
[dependency-groups]
dev = [
"pre-commit==4.6.2",
"ruff==0.16.9",
]
[project.scripts]
start = "main:main"
lock = "window.lock:main"
[tool.ruff]
target-version = "py313"
line-length = 88
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"C4", # flake8-comprehensions
"RET", # flake8-return
"RUF", # ruff-specific rules
"PIE", # flake8-pie
"T20", # flake8-print
"PT", # flake8-pytest-style
"TCH", # flake8-type-checking
"FLY", # flynt (f-string conversion)
]
ignore = [
"T201", # allow print() (used for CLI output)
"RET504", # allow unnecessary assignment before return
"SIM108", # allow ternary operator (readability)
"B008", # allow function calls in default args (common in GTK)
"UP007", # allow X | Y union syntax (keep Optional for compatibility)
"UP045", # allow Optional[X] annotation style
"UP006", # allow typing.List etc (keep for readability)
"UP035", # allow deprecated typing imports
"RUF012", # allow mutable class attributes (common in GTK widgets)
"TC001", # allow runtime imports that happen to be type-only
"E501", # line length handled by formatter
"RET505", # allow superfluous else after return
"B027", # allow empty method bodies (common in ABCs)
"B007", # allow unused loop variables
"SIM102", # allow collapsible if
"SIM105", # allow suppressible exception (contextlib.suppress)
"B023", # allow function uses loop variable (closures)
"RUF002", # allow ambiguous unicode in docstrings
"RUF003", # allow ambiguous unicode in comments
"SIM115", # allow open without context handler
"SIM116", # allow if-else instead of dict lookup
"B018", # allow useless expression (standalone identifiers)
"TC004", # allow imports in TYPE_CHECKING block (circular import prevention)
]
[tool.ruff.lint.isort]
known-first-party = ["services", "utils", "shared", "window"]
[tool.ruff.lint.per-file-ignores]
"src/main.py" = ["E402"]
"src/window/switcher/main.py" = ["E402"]
"examples/**" = ["INP001", "D101", "D102", "D103"]
[tool.uv.sources]
fabric = { git = "https://github.com/Fabric-Development/fabric.git" }