pyproject.toml 990 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [tool.pytest.ini_options]
  2. DJANGO_SETTINGS_MODULE = "desktop.settings"
  3. addopts = "-v -m 'not integration' --strict-markers --durations=10"
  4. norecursedirs = "desktop/core/ext-py3"
  5. python_files = "tests.py test_*.py *_tests.py tests_* *_test.py"
  6. markers = [
  7. "integration: live server based tests",
  8. "requires_hadoop: live hadoop cluster based tests"
  9. ]
  10. [tool.ruff]
  11. target-version = "py38"
  12. line-length = 140
  13. indent-width = 2
  14. force-exclude = true
  15. extend-exclude = [
  16. "*/ext-py3/*",
  17. "desktop/core/src/desktop/lib/wsgiserver.py",
  18. "*/migrations/*",
  19. "apps/oozie/src/oozie/tests.py",
  20. "tools/ops/",
  21. "tools/ace-editor/",
  22. "*/gen-py/*",
  23. "*/org_migrations/*",
  24. "*/old_migrations/*"
  25. ]
  26. [tool.ruff.lint]
  27. preview = true
  28. select = [
  29. "E", # pycodestyle errors
  30. "W", # pycodestyle warnings
  31. ]
  32. ignore = [
  33. "E111",
  34. "E114",
  35. "E117",
  36. "W191",
  37. ]
  38. [tool.ruff.format]
  39. docstring-code-format = true
  40. docstring-code-line-length = 140
  41. indent-style = "space"
  42. quote-style = "preserve"