pyproject.toml 910 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. force-exclude = true
  14. extend-exclude = [
  15. "*/ext-py3/*",
  16. "desktop/core/src/desktop/lib/wsgiserver.py",
  17. "*/migrations/*",
  18. "apps/oozie/src/oozie/tests.py",
  19. "tools/ops/",
  20. "tools/ace-editor/",
  21. "*/gen-py/*",
  22. "*/org_migrations/*"
  23. ]
  24. [tool.ruff.lint]
  25. preview = true
  26. select = [
  27. "E", # pycodestyle errors
  28. "W", # pycodestyle warnings
  29. ]
  30. ignore = [
  31. "E111",
  32. "E114",
  33. "W191",
  34. "E902", # Skip it because of deleted staged files
  35. ]
  36. [tool.ruff.format]
  37. docstring-code-format = true