-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
85 lines (70 loc) · 3.15 KB
/
pytest.ini
File metadata and controls
85 lines (70 loc) · 3.15 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
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
[pytest]
# Pytest configuration for alphalens
minversion = 6.0
addopts = -ra -v --strict-markers --tb=short
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test markers
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests
unit: marks tests as unit tests
plotting: marks tests that generate plots
# Ignore patterns for test discovery
norecursedirs = .git .tox dist build *.egg __pycache__ .pytest_cache
# Warning filters to suppress common warnings
filterwarnings =
# Ignore pandas_datareader DeprecationWarnings about distutils
ignore:distutils Version classes are deprecated:DeprecationWarning:pandas_datareader.compat
# Ignore setuptools DeprecationWarnings during installation
ignore:License classifiers are deprecated::setuptools.dist
ignore:develop command is deprecated::setuptools._distutils.cmd
# Ignore pandas FutureWarnings for groupby operations
ignore:DataFrameGroupBy.apply operated on the grouping columns:FutureWarning:alphalens.performance
# Ignore pytest-benchmark warning when using xdist
ignore:Benchmarks are automatically disabled because xdist plugin is active::pytest_benchmark.logger
# Ignore matplotlib warnings
ignore:no explicit representation of timezones available for np.datetime64:UserWarning:matplotlib.dates
ignore:parsing timezone aware datetimes is deprecated:DeprecationWarning:matplotlib.dates
# Ignore seaborn warnings
ignore:vert.* bool will be deprecated in a future version:PendingDeprecationWarning:seaborn.categorical
ignore:.*is deprecated and will be removed in a future version:FutureWarning:seaborn
# Ignore numpy warnings in calculations
ignore:invalid value encountered in.*:RuntimeWarning:numpy
ignore:divide by zero encountered in.*:RuntimeWarning:numpy
ignore:Mean of empty slice:RuntimeWarning:numpy.lib._nanfunctions_impl
# Ignore empyrical warnings for edge cases
ignore:invalid value encountered in scalar power:RuntimeWarning:empyrical.stats
ignore:divide by zero encountered in divide:RuntimeWarning:empyrical.stats
# Ignore statsmodels warnings
ignore:kurtosistest only valid for n>=20:UserWarning:scipy.stats
ignore:The default value of numeric_only in.*:FutureWarning:pandas.core.groupby.groupby
# Ignore IPython display warnings
ignore:Glyph.*missing from current font:UserWarning:matplotlib.font_manager
# Ignore pkg_resources deprecation warnings (Python 3.8+)
ignore:pkg_resources is deprecated as an API:DeprecationWarning:pkg_resources
ignore:Deprecated call to.*pkg_resources.declare_namespace:DeprecationWarning:pkg_resources
# Coverage configuration
[coverage:run]
source = alphalens
omit =
*/tests/*
*/test_*
*/__init__.py
*/versioneer.py
*/_version.py
*/examples/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
class .*\bProtocol\):
@(abc\.)?abstractmethod