Advertisement
Guest User

pyp.toml

a guest
Mar 13th, 2022
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. [tool.black]
  2. line-length = 100
  3. target-version = ['py38']
  4. include = '\.pyi?$'
  5. force-exclude = """
  6. /(
  7. .git
  8. | .hg
  9. | .eggs
  10. | .mypy_cache
  11. | .tox
  12. | .venv
  13. | .venv
  14. | _build
  15. | buck-out
  16. | build
  17. | dist
  18. | migrations
  19. )/
  20. """
  21.  
  22. [tool.isort]
  23. profile = "black"
  24. line_length = 100
  25. sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
  26. no_lines_before = "LOCALFOLDER"
  27. skip_glob = ["*/migrations/*.py"]
  28. src_paths = ["src", "."]
  29. known_thirdparty = ["django"]
  30.  
  31. [tool.coverage.run]
  32. omit = [
  33. "*/tests/*",
  34. "*/migrations/*",
  35. "*/prototypes/*",
  36. "*/site-packages/*",
  37. "*/test_*",
  38. "scripts/*",
  39. "docker/*",
  40. "config/*",
  41. ]
  42.  
  43. [tool.coverage.report]
  44. precision = 2
  45.  
  46. [tool.pytest.ini_options]
  47. python_files = "tests.py test_*.py *_tests.py"
  48. DJANGO_SETTINGS_MODULE= "config.settings_testing"
  49. markers = [
  50. "slow: marks tests as slow (deselect with '-m \"not slow\"')",
  51. "jwt_scope: sets required scope for api test",
  52. ]
  53. env = [
  54. "ENVIRONMENT=test",
  55. ]
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement