feat: Add Ruff configuration and update .gitignore

- Add Ruff linter configuration to core/pyproject.toml
- Add uv.lock to .gitignore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Richard T
2026-01-23 14:43:03 -08:00
parent 93f0181ff5
commit 482a4933d5
2 changed files with 27 additions and 0 deletions
+26
View File
@@ -28,3 +28,29 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["framework"]
[tool.ruff]
target-version = "py311"
line-length = 100
lint.select = [
"B", # bugbear errors
"C4", # flake8-comprehensions errors
"E", # pycodestyle errors
"F", # pyflakes errors
"I", # import sorting
"Q", # flake8-quotes errors
"UP", # py-upgrade
"W", # pycodestyle warnings
]
lint.isort.combine-as-imports = true
lint.isort.known-first-party = ["framework"]
lint.isort.section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]