pyproject.toml 763 B

1234567891011121314151617181920212223242526272829303132333435
  1. [tool.ruff]
  2. target-version = "py39"
  3. extend-select = [
  4. "B",
  5. "C",
  6. "I",
  7. "W",
  8. ]
  9. exclude = [
  10. "extensions",
  11. "extensions-disabled",
  12. ]
  13. ignore = [
  14. "E501", # Line too long
  15. "E731", # Do not assign a `lambda` expression, use a `def`
  16. "I001", # Import block is un-sorted or un-formatted
  17. "C901", # Function is too complex
  18. "C408", # Rewrite as a literal
  19. "W605", # invalid escape sequence, messes with some docstrings
  20. ]
  21. [tool.ruff.per-file-ignores]
  22. "webui.py" = ["E402"] # Module level import not at top of file
  23. [tool.ruff.flake8-bugbear]
  24. # Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
  25. extend-immutable-calls = ["fastapi.Depends", "fastapi.security.HTTPBasic"]
  26. [tool.pytest.ini_options]
  27. base_url = "http://127.0.0.1:7860"