forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
98 lines (95 loc) · 3.47 KB
/
tox.ini
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[tox]
envlist = py27-tests
skipsdist = true
minversion = 3.8.0
requires =
tox-pip-extensions
tox-pyenv
tox_pip_extensions_ext_venv_update = true
[pytest]
filterwarnings =
# Fail the tests if there are any warnings.
error
# Ignore certain specific warnings. One line per warning to ignore. The
# pattern is:
#
# ignore:<WARNING_MESSAGE>:<WARNING_CATEGORY>:<MODULE>
#
# <WARNING_MESSAGE> is a regex that must match the warning message that you
# want to ignore.
#
# <WARNING_CATEGORY> is the class of the warning that you want to ignore,
# e.g. DeprecationWarning. See:
# https://docs.python.org/2/library/warnings.html#warning-categories
#
# <MODULE> is the name of the module that the warning originates from.
#
# See https://docs.python.org/3/library/warnings.html and
# https://docs.pytest.org/en/latest/warnings.html
#
ignore:^Use of \.\. or absolute path in a resource path is not allowed and will raise exceptions in a future release\.$:DeprecationWarning:pkg_resources
[testenv]
skip_install = true
sitepackages = {env:SITE_PACKAGES:false}
passenv =
dev: AUTHORITY
dev: BOUNCER_URL
dev: CLIENT_OAUTH_ID
dev: CLIENT_RPC_ALLOWED_ORIGINS
dev: CLIENT_URL
dev: GOOGLE_ANALYTICS_TRACKING_ID
dev: GOOGLE_ANALYTICS_CLIENT_TRACKING_ID
dev: SENTRY_DSN
dev: SENTRY_ENVIRONMENT
dev: USE_HTTPS
dev: WEBSOCKET_URL
dev: NEW_RELIC_LICENSE_KEY
dev: NEW_RELIC_APP_NAME
{tests,functests}: TEST_DATABASE_URL
{tests,functests}: ELASTICSEARCH_URL
{tests,functests}: PYTEST_ADDOPTS
functests: BROKER_URL
codecov: CI TRAVIS*
deps =
tests: coverage
{tests,functests,docstrings,checkdocstrings,analyze}: pytest
{tests,functests,docstrings,checkdocstrings,analyze}: factory-boy
{tests,docstrings,checkdocstrings,analyze}: mock
{tests,docstrings,checkdocstrings,analyze}: hypothesis
lint: flake8
lint: flake8-future-import
{format,checkformatting}: black
coverage: coverage
codecov: codecov
{functests,docstrings,checkdocstrings,analyze}: webtest
{docs,docstrings}: sphinx-autobuild
{docs,checkdocs,docstrings,checkdocstrings}: sphinx
{docs,checkdocs,docstrings,checkdocstrings}: sphinx_rtd_theme
{tests,functests,docstrings,checkdocstrings,analyze}: -r requirements.txt
analyze: pylint
dev: ipython
dev: ipdb
dev: -r requirements-dev.in
whitelist_externals =
dev: sh
changedir =
{docs,checkdocs}: docs
commands =
dev: sh bin/hypothesis --dev init
dev: {posargs:sh bin/hypothesis devserver}
lint: flake8 h
lint: flake8 tests
lint: flake8 --select FI14 --exclude 'h/cli/*,tests/h/cli/*,h/util/uri.py,h/migrations/versions/*' h tests
analyze: pylint {posargs:h tests}
format: black h tests
checkformatting: black --check h tests
tests: coverage run -m pytest {posargs:tests/h/}
functests: pytest {posargs:tests/functional/}
docs: sphinx-autobuild -BqT -b dirhtml -d {envdir}/doctrees . {envdir}/html
checkdocs: sphinx-build -qTWn -b dirhtml -d {envdir}/doctrees . {envdir}/html
{docstrings,checkdocstrings}: sphinx-apidoc -ePMF -a -H "Dooccsstrinngs!!" --ext-intersphinx --ext-todo --ext-viewcode -o {envdir}/rst .
docstrings: sphinx-autobuild -BqT -z h -z tests -b dirhtml {envdir}/rst {envdir}/dirhtml
checkdocstrings: sphinx-build -qTn -b dirhtml {envdir}/rst {envdir}/dirhtml
coverage: -coverage combine
coverage: coverage report --show-missing
codecov: codecov