File: noxfile.py

package info (click to toggle)
sklearn-pandas 2.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 440 kB
  • sloc: python: 1,177; sh: 12; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import nox

@nox.session
def lint(session):
    session.install('pytest>=5.3.5', 'setuptools>=45.2',
                    'wheel>=0.34.2', 'flake8>=3.7.9',
                    'numpy==1.18.1', 'pandas==1.1.4')
    session.install('.')
    session.run('flake8', 'sklearn_pandas/', 'tests')

@nox.session
@nox.parametrize('numpy', ['1.18.1', '1.19.4', '1.20.1'])
@nox.parametrize('scipy', ['1.5.4', '1.6.0'])
@nox.parametrize('pandas', ['1.1.4', '1.2.2'])
def tests(session, numpy, scipy, pandas):
    session.install('pytest>=5.3.5', 
                    'setuptools>=45.2',
                    'wheel>=0.34.2',
                    f'numpy=={numpy}',
                    f'scipy=={scipy}',
                    f'pandas=={pandas}'
                    )
    session.install('.')
    session.run('py.test', 'README.rst', 'tests')