Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
191 lines (155 loc) · 5.25 KB
/
Copy pathpyproject.toml
File metadata and controls
191 lines (155 loc) · 5.25 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# ============================================================
# Project metadata
# ============================================================
[project]
name = "qtshadcn"
description = "Modern styling and theming framework for Qt/PyQt/PySide applications."
readme = "README.md"
requires-python = ">=3.11"
dynamic = ["version"]
authors = [{ name = "Christopher Nuñez", email = "busine015@gmail.com" }]
maintainers = [{ name = "Christopher Nuñez", email = "busine015@gmail.com" }]
# ============================================================
# PyPI keywords
# ============================================================
keywords = [
"desktop",
"gui",
"pyqt",
"pyqt6",
"pyside",
"pyside6",
"qss",
"qt",
"shadcn",
"stylesheet",
"theme",
"widgets",
]
# ============================================================
# PyPI classifiers
# ============================================================
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
]
# ============================================================
# Runtime dependencies (installed automatically with qtshadcn)
# ============================================================
dependencies = [
"Jinja2>=3.1.6", # template engine
"darkdetect>=0.8.0", # OS dark-mode detection
"pydantic>=2.14.0,<3.0.0", # data validation
]
# ============================================================
# Project URLs
# ============================================================
[project.urls]
Documentation = "https://qtshadcn.readthedocs.io/"
Homepage = "https://github.com/BugCodeX/QtShadcn"
Issues = "https://github.com/BugCodeX/QtShadcn/issues"
Repository = "https://github.com/BugCodeX/QtShadcn"
# ============================================================
# Optional dependencies (not installed by default)
# ============================================================
[project.optional-dependencies]
dev = [
"pyside6>=6.11.1", # Qt bindings
"PyQt6>=6.11", # Qt bindings (alternative for local tests)
"build>=1.2", # package builder
"pytest>=9.1.1", # test runner
"pytest-cov>=7.1.0", # coverage plugin
"pytest-mock>=3.14.0", # mocking support for pytest
"pytest-qt>=4.2.0", # Qt widget testing (qtbot fixture)
"ruff>=0.16.2", # linter and formatter
"pre-commit>=4.6.2", # git hooks
"ty>=0.0.71", # type checker
"rich>=13.0.0", # logging in examples
"twine>=7.0", # PyPI upload
"mkdocs>=1.6.1", # documentation builder
"mkdocs-material>=9.7.7", # Material theme for MkDocs
"pymdown-extensions>=11.0.1", # Markdown extensions for MkDocs
]
# ============================================================
# Build system
# ============================================================
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
# ============================================================
# Coverage
# ============================================================
[tool.coverage.run]
source = ["qtshadcn"]
omit = ["examples/*", "tests/*"]
# ============================================================
# ruff — linter and formatter
# ============================================================
[tool.hatch.build.targets.wheel]
packages = ["qtshadcn"]
[tool.hatch.version]
path = "qtshadcn/__init__.py"
# ============================================================
# pytest
# ============================================================
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config", "--ignore=examples"]
norecursedirs = ["examples", "build", "dist", "htmlcov", ".git"]
python_files = ["test_*.py"]
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
line-length = 100
exclude = [".venv", ".agents", "gallery"]
force-exclude = true
src = ["qtshadcn", "tests"]
[tool.ruff.lint]
extend-select = ["D400"]
select = [
"D", # pydocstyle
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long
"D104", # missing public package docstring
"D202", # no blank lines after docstring
"F403", # star imports
"SIM102", # nested ifs (sometimes clearer)
"COM812", # trailing comma (conflicts with formatter)
"ISC001", # implicit string concat (conflicts with formatter)
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"D100", # missing module docstring
"D101", # missing class docstring
"D102", # missing method docstring
"D103", # missing function docstring
]
[tool.ruff.lint.pydocstyle]
convention = "google"
# ============================================================
# ty — type checker
# ============================================================
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ty.environment]
python-version = "3.11"
[tool.ty.terminal]
error-on-warning = true
[tool.ty.src]
exclude = ["examples"]