mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-10 10:43:01 +02:00
Linting and code cleanup for an imitation of order
This commit is contained in:
@@ -24,9 +24,49 @@ test = [
|
||||
asyncio_mode = "auto"
|
||||
testpaths = ["tests"]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py310"
|
||||
line-length = 100
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle errors
|
||||
"W", # pycodestyle warnings
|
||||
"F", # pyflakes
|
||||
"I", # isort
|
||||
"B", # flake8-bugbear
|
||||
"C4", # flake8-comprehensions
|
||||
"UP", # pyupgrade
|
||||
"SIM", # flake8-simplify
|
||||
]
|
||||
ignore = [
|
||||
"E501", # line too long (handled by formatter)
|
||||
"SIM105", # contextlib.suppress - doesn't work well with async code
|
||||
"SIM108", # ternary operator (sometimes less readable)
|
||||
"SIM117", # nested with statements - can be clearer in tests
|
||||
]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
known-first-party = ["app"]
|
||||
|
||||
[tool.pyright]
|
||||
pythonVersion = "3.10"
|
||||
typeCheckingMode = "basic"
|
||||
include = ["app"]
|
||||
exclude = ["references", ".venv", "tests"]
|
||||
reportMissingImports = true
|
||||
reportMissingTypeStubs = false
|
||||
# Temporarily lenient - fix these incrementally
|
||||
reportOptionalMemberAccess = "warning"
|
||||
reportArgumentType = "warning"
|
||||
reportReturnType = "warning"
|
||||
reportAttributeAccessIssue = "warning"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"httpx>=0.28.1",
|
||||
"pytest>=9.0.2",
|
||||
"pytest-asyncio>=1.3.0",
|
||||
"ruff>=0.8.0",
|
||||
"pyright>=1.1.390",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user