Spaces:
Sleeping
Sleeping
| [tool.ruff] | |
| # Set line length to 100 characters | |
| line-length = 100 | |
| # Target Python 3.12 (matching your project) | |
| target-version = "py312" | |
| # Exclude common directories | |
| exclude = [ | |
| ".git", | |
| ".venv", | |
| "venv", | |
| "__pycache__", | |
| ".gradio", | |
| ] | |
| [tool.ruff.lint] | |
| # Enable: | |
| # E/W - pycodestyle errors and warnings | |
| # F - Pyflakes | |
| # I - isort (import sorting) | |
| # N - pep8-naming | |
| # UP - pyupgrade (modernize Python code) | |
| select = ["E", "W", "F", "I", "N", "UP"] | |
| # Ignore specific rules if needed | |
| ignore = [] | |
| [tool.ruff.lint.isort] | |
| # Sort imports alphabetically within sections | |
| force-sort-within-sections = true | |