ProfillyBot / ruff.toml
MinhDS's picture
Deploy ProfillyBot: Gradio ZeroGPU + CV RAG (Qwen2.5-3B)
0828c2c verified
Raw
History Blame Contribute Delete
1.05 kB
# Ruff configuration file
# Alternative to configuring in pyproject.toml
line-length = 100
target-version = "py310"
indent-width = 4
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B905", # zip strict parameter
]
[lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports
"tests/**/*.py" = [
"ARG001", # Unused function argument (common for fixtures)
"ARG002", # Unused method argument (common for fixtures)
"F841", # Unused local variable (common for side-effect calls)
"SIM117", # Nested with statements (more readable in tests)
]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"