forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
48 lines (42 loc) · 2.03 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[build-system]
requires = ["setuptools>=40.2.0,<64.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
# File filtering is taken care of in pre-commit.
line-length=100
target-version=['py38']
[tool.isort]
profile = "black"
line_length = 100
lines_between_sections = 1
known_first_party = "sentry"
skip = "migrations"
[tool.pytest.ini_options]
# note: When updating the traceback format, make sure to update .github/pytest.json
# We don't use the celery pytest plugin.
addopts = "-ra --tb=short --strict-markers -p no:celery"
# TODO: --import-mode=importlib will become the default soon,
# currently we have a few relative imports that don't work with that.
markers = [
"snuba: mark a test as requiring snuba",
"itunes: test requires iTunes interaction, skipped unless --itunes is provided",
"getsentryllc: test requires credentials for the GetSentry LLC organisation in Apple App Store Connect",
"sentry_metrics: test requires access to sentry metrics",
"broken_under_tags_values_as_strings: tests that currently fail if tags values are strings in clickhouse. this is mainly because they are not going to the right dataset",
]
selenium_driver = "chrome"
filterwarnings = [
# Consider all warnings to be errors other than the ignored ones.
"error",
"ignore::django.utils.deprecation.RemovedInDjango30Warning",
# At writing, the Google Bigtable Emulator relies on deprecated behavior
# internally, this can be removed once a version containing this fix is
# released: https://github.com/googleapis/python-bigtable/pull/246
"ignore:The `channel` argument is deprecated; use `transport` instead.:PendingDeprecationWarning:google.cloud.bigtable*",
# The following warning filters are for pytest only.
# This is so we don't have to wrap most datetime objects in testing code
# with django.utils.timezone.
"ignore:DateTimeField.*naive datetime:RuntimeWarning",
"ignore:.*sentry.digests.backends.dummy.DummyBackend.*:sentry.utils.warnings.UnsupportedBackend",
]
looponfailroots = ["src", "tests"]