forked from quantopian/pyfolio
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
46 lines (36 loc) · 2.2 KB
/
pytest.ini
File metadata and controls
46 lines (36 loc) · 2.2 KB
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
[pytest]
minversion = 6.0
addopts = -ra -v --strict-markers
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
network: marks tests as requiring network access
integration: marks tests as integration tests
filterwarnings =
# Ignore pandas_datareader DeprecationWarnings about distutils
ignore:distutils Version classes are deprecated:DeprecationWarning:pandas_datareader.compat
# Ignore UserWarning about missing zipline.assets module
ignore:Module "zipline.assets" not found:UserWarning:pyfolio.pos
# Ignore RuntimeWarnings that are expected in certain calculations
ignore:invalid value encountered in scalar power:RuntimeWarning:empyrical.stats
ignore:divide by zero encountered in divide:RuntimeWarning:empyrical.stats
ignore:Mean of empty slice:RuntimeWarning:numpy.lib._nanfunctions_impl
# Ignore passed returns overlap warning for interesting times
ignore:Passed returns do not overlap with any.*interesting times:UserWarning:pyfolio.tears
# Ignore matplotlib datetime64 warning
ignore:no explicit representation of timezones available for np.datetime64:UserWarning:matplotlib.dates
# Ignore seaborn vert deprecation warning
ignore:vert.* bool will be deprecated in a future version:PendingDeprecationWarning:seaborn.categorical
# Ignore pytest-benchmark warning when using xdist
ignore:Benchmarks are automatically disabled because xdist plugin is active::pytest_benchmark.logger
# Ignore pytensor find_executable deprecation warning
ignore:Use shutil.which instead of find_executable:DeprecationWarning:pytensor.configdefaults
# Ignore arviz pkg_resources deprecation warning (Python 3.8)
ignore:pkg_resources is deprecated as an API:DeprecationWarning:arviz.data.base
# Ignore pkg_resources namespace deprecation warning (Python 3.8)
ignore:Deprecated call to.*pkg_resources.declare_namespace:DeprecationWarning:pkg_resources
# Ignore matplotlib timezone aware datetime parsing deprecation
ignore:parsing timezone aware datetimes is deprecated:DeprecationWarning:matplotlib.dates