forked from reviewboard/reviewboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
67 lines (51 loc) · 2.12 KB
/
setup.cfg
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[aliases]
release = egg_info --no-date --tag-build=
[egg_info]
tag_build = .dev
[pep8]
ignore = E121,E125,E129,E241,W504
[flake8]
ignore = E121,E125,E129,E241,W504
[tool:pytest]
# Configure pytest-django for our test environment.
DJANGO_SETTINGS_MODULE = reviewboard.settings
django_debug_mode = false
# Be explicit about where to find test files.
python_files = tests.py test_*.py
python_classes = *Tests
python_functions = test_*
pythonpath = .
norecursedirs = reviewboard/htdocs
testpaths = reviewboard
# Ignore certain warnings until we can address them (through fixes or
# upgrades)
filterwarnings =
# Not sure where this is coming from, but it's happening in pytest's
# assert rewriting.
ignore:'version_info' is deprecated. Use '__version_info__' instead.
# Ignore Python's collections.abc warning (we patch the support back in,
# due to Django 1.11's usage).
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated
# Ignore all paramiko "Unknown key" warnings.
ignore:Unknown .* host key for localhost
# Ignore use of imp that doesn't appear to be present in importlib.
# This may be obsolete now that we're Python 3+.
ignore:the imp module is deprecated in favour of importlib\; see the module's documentation for alternative uses
# Ignore until we upgrade pymdownx.
ignore:'etree' is deprecated. Use 'xml.etree.ElementTree' instead.
# Ignore until haystack updates
ignore:'haystack' defines default_app_config = 'haystack.apps.HaystackConfig'. Django now detects this configuration automatically. You can remove default_app_config.
ignore:smart_text\(\) is deprecated in favor of smart_str\(\).
# Ignore warnings inside paramiko
ignore:setDaemon\(\) is deprecated, set the daemon attribute instead
ignore:notifyAll\(\) is deprecated, use notify_all\(\) instead
# Set the correct environment state for our test run.
env =
RB_RUNNING_TESTS=1
RBSSH_STORAGE_BACKEND=reviewboard.ssh.storage.FileSSHStorage
# Default to treating arguments as module/class/function paths, not files.
addopts = --reuse-db
# Require the following plugins.
required_plugins =
pytest-django
pytest-env