| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- [tool.pytest.ini_options]
- DJANGO_SETTINGS_MODULE = "desktop.settings"
- addopts = "-v -m 'not integration' --strict-markers --durations=10"
- norecursedirs = "desktop/core/ext-py3"
- python_files = "tests.py test_*.py *_tests.py tests_* *_test.py"
- markers = [
- "integration: live server based tests",
- "requires_hadoop: live hadoop cluster based tests"
- ]
- [tool.ruff]
- target-version = "py38"
- line-length = 140
- force-exclude = true
- extend-exclude = [
- "*/ext-py3/*",
- "desktop/core/src/desktop/lib/wsgiserver.py",
- "*/migrations/*",
- "apps/oozie/src/oozie/tests.py",
- "tools/ops/",
- "tools/ace-editor/",
- "*/gen-py/*",
- "*/org_migrations/*"
- ]
- [tool.ruff.lint]
- preview = true
- select = [
- "E", # pycodestyle errors
- "W", # pycodestyle warnings
- ]
- ignore = [
- "E111",
- "E114",
- "W191",
- "E902", # Skip it because of deleted staged files
- ]
- [tool.ruff.format]
- docstring-code-format = true
|