2
0

pyproject.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [tool.black]
  2. line-length = 80
  3. exclude = '''
  4. (
  5. /(
  6. \.eggs
  7. | \.git
  8. | \.github
  9. | \.hg
  10. | \.mypy_cache
  11. | \.tox
  12. | \.venv
  13. | _build
  14. | build
  15. | ci
  16. | dist
  17. | migrations
  18. | testproject
  19. | venv
  20. )/
  21. )
  22. '''
  23. [tool.codespell]
  24. skip = 'migrations,vendor,_build,*.css.map,*.jpg,*.png,*.pyc'
  25. ignore-words-list = 'assertIn'
  26. [tool.django-stubs]
  27. django_settings_module = "coderedcms.tests.settings"
  28. [tool.mypy]
  29. ignore_missing_imports = true
  30. plugins = ["mypy_django_plugin.main"]
  31. exclude = [
  32. '^\..*',
  33. 'migrations',
  34. 'node_modules',
  35. 'venv',
  36. 'testproject',
  37. ]
  38. [tool.pytest.ini_options]
  39. DJANGO_SETTINGS_MODULE = "coderedcms.tests.settings"
  40. addopts = "--cov --cov-report html --cov-report xml --junitxml junit/test-results.xml"
  41. python_files = "tests.py test_*.py"
  42. junit_family = "xunit2"
  43. junit_suite_name = "coderedcms"
  44. [tool.ruff]
  45. extend-exclude = ["migrations", "testproject"]
  46. line-length = 80
  47. [tool.ruff.lint]
  48. extend-select = ["I"]
  49. [tool.ruff.lint.isort]
  50. case-sensitive = false
  51. force-single-line = true
  52. lines-after-imports = 2