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:
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user