Spaces:
Running
Running
Download backend/ruff.toml from axeronis/microfunnel-api: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/backend/ruff.toml
- Command line
-
hf download hf://spaces/axeronis/microfunnel-api/backend/ruff.toml
-
curl -L -o ruff.toml https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/backend/ruff.toml
1.51 kB
| # Ruff Configuration for MicroFunnel Backend | |
| # https://docs.astral.sh/ruff/ | |
| [lint] | |
| # Enable common rule sets | |
| 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 specific rules | |
| ignore = [ | |
| "E501", # line too long (handled by formatter) | |
| "B008", # function call in default argument (FastAPI Depends) | |
| "B904", # raise from (too strict) | |
| "ARG001", # unused function argument (common in FastAPI) | |
| "ARG002", # unused method argument | |
| ] | |
| # Allow autofix for all enabled rules | |
| fixable = ["ALL"] | |
| unfixable = [] | |
| [lint.per-file-ignores] | |
| # Tests can use magic values and assertions | |
| "tests/**/*.py" = ["S101", "PLR2004"] | |
| # Alembic migrations have specific patterns | |
| "alembic/**/*.py" = ["E402", "F401"] | |
| # __init__.py files often have unused imports | |
| "__init__.py" = ["F401"] | |
| [lint.isort] | |
| known-first-party = ["app"] | |
| force-single-line = false | |
| lines-after-imports = 2 | |
| [format] | |
| # Python 3.11+ compatible formatting | |
| quote-style = "double" | |
| indent-style = "space" | |
| skip-magic-trailing-comma = false | |
| line-ending = "auto" | |
| # Target Python version | |
| target-version = "py311" | |
| # Exclude directories | |
| exclude = [ | |
| ".git", | |
| ".venv", | |
| "__pycache__", | |
| "alembic/versions", | |
| ".mypy_cache", | |
| ".ruff_cache", | |
| ] | |
| # Line length | |
| line-length = 100 | |