Completed
Pull Request — master (#272)
by Ryan
01:14
created

pytest_report_header()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
1
# Copyright (c) 2016 MetPy Developers.
2
# Distributed under the terms of the BSD 3-Clause License.
3
# SPDX-License-Identifier: BSD-3-Clause
4
"""Configure pytest for metpy."""
5
6
import matplotlib
7
import numpy
8
import pint
9
import scipy
10
11
12
def pytest_report_header(config, startdir):
13
    """Add dependency information to pytest output."""
14
    return ('Dependencies: Matplotlib ({}), NumPy ({}), '
15
            'Pint ({}), SciPy ({})'.format(matplotlib.__version__, numpy.__version__,
16
                                           pint.__version__, scipy.__version__))
17