pyproject.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [build-system]
  2. requires = ["setuptools>=40.2.0,<64.0.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [tool.black]
  5. # File filtering is taken care of in pre-commit.
  6. line-length = 100
  7. target-version = ['py38']
  8. [tool.isort]
  9. profile = "black"
  10. line_length = 100
  11. lines_between_sections = 1
  12. known_first_party = "sentry"
  13. skip = "migrations"
  14. [tool.pytest.ini_options]
  15. python_files = "test_*.py sentry/testutils/*"
  16. # note: When updating the traceback format, make sure to update .github/pytest.json
  17. # We don't use the celery pytest plugin.
  18. addopts = "-ra --tb=short --strict-markers -p no:celery"
  19. # TODO: --import-mode=importlib will become the default soon,
  20. # currently we have a few relative imports that don't work with that.
  21. markers = [
  22. "snuba: test requires access to snuba",
  23. "sentry_metrics: test requires access to sentry metrics",
  24. "symbolicator: test requires access to symbolicator",
  25. ]
  26. selenium_driver = "chrome"
  27. filterwarnings = [
  28. # Consider all warnings to be errors other than the ignored ones.
  29. "error",
  30. "ignore::django.utils.deprecation.RemovedInDjango30Warning",
  31. # At writing, the Google Bigtable Emulator relies on deprecated behavior
  32. # internally, this can be removed once a version containing this fix is
  33. # released: https://github.com/googleapis/python-bigtable/pull/246
  34. "ignore:The `channel` argument is deprecated; use `transport` instead.:PendingDeprecationWarning:google.cloud.bigtable*",
  35. # The following warning filters are for pytest only.
  36. # This is so we don't have to wrap most datetime objects in testing code
  37. # with django.utils.timezone.
  38. "ignore:DateTimeField.*naive datetime:RuntimeWarning",
  39. "ignore:.*sentry.digests.backends.dummy.DummyBackend.*:sentry.utils.warnings.UnsupportedBackend",
  40. # pytest has not yet implemented the replacement for this yet
  41. "ignore:The --looponfail command line argument.*",
  42. ]
  43. looponfailroots = ["src", "tests"]