chore: add pyproject.toml, ruff/pytest config, pre-commit hooks, dev deps
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
[project]
|
||||
name = "better-claude-config"
|
||||
version = "1.1.0"
|
||||
description = "Cross-platform GUI for editing the mcpServers block of Claude Desktop and Claude Code configs"
|
||||
readme = "README.md"
|
||||
license = { file = "LICENSE" }
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"PySide6>=6.6",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=8.0",
|
||||
"ruff>=0.6",
|
||||
"pre-commit>=3.5",
|
||||
]
|
||||
build = [
|
||||
"pyinstaller>=6.0",
|
||||
"pillow>=10.0",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://git.avezzano.io/the_og/better-claude-config"
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Tooling
|
||||
# ---------------------------------------------------------------------------
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
addopts = "-q"
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py310"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle errors
|
||||
"W", # pycodestyle warnings
|
||||
"F", # pyflakes
|
||||
"I", # isort
|
||||
"UP", # pyupgrade
|
||||
"B", # bugbear
|
||||
"SIM", # simplify
|
||||
"RUF", # ruff-specific
|
||||
]
|
||||
ignore = [
|
||||
"E501", # line length handled pragmatically; GUI strings run long
|
||||
"SIM108", # ternary rewrites hurt readability in places
|
||||
"RUF001", # UI strings intentionally use typographic glyphs (−, →, ↳)
|
||||
"RUF002",
|
||||
"RUF003",
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"bcc.py" = ["F405", "F403"] # Qt star-import style if ever used
|
||||
Reference in New Issue
Block a user