xref: /sqlalchemy/tox.ini (revision 077f26af)
19281e700SMike Bayer[tox]
2f7943db2SMike Bayerenvlist = full,py26,py27,py33,py34,py35
39281e700SMike Bayer
49281e700SMike Bayer[testenv]
59281e700SMike Bayerdeps=pytest
69281e700SMike Bayer     mock
79281e700SMike Bayer
8f30e35baSMike Bayer# -E     : ignore PYTHON* environment variables (such as PYTHONPATH)
9f30e35baSMike Bayer# -s     : don't add user site directory to sys.path; also PYTHONNOUSERSITE
10f30e35baSMike Bayer# the latter is picked up by conftest.py
11f30e35baSMike Bayersetenv=
12f30e35baSMike Bayer    PYTHONPATH=
13f30e35baSMike Bayer    PYTHONNOUSERSITE=1
14f30e35baSMike Bayer
1572329433SMike Bayer# we need this because our CI has all the DBAPIs and such
1672329433SMike Bayer# pre-installed in individual site-packages directories.
1772329433SMike Bayersitepackages=True
18f30e35baSMike Bayer
19f30e35baSMike Bayer# always install fully and use that; this way options like
20f30e35baSMike Bayer# DISABLE_SQLALCHEMY_CEXT are honored
21f30e35baSMike Bayerusedevelop=False
22f30e35baSMike Bayer
237f423e87SMike Bayer# tox as of 2.0 blocks all environment variables from the
247f423e87SMike Bayer# outside, unless they are here (or in TOX_TESTENV_PASSENV,
25077f26afSMike Bayer# wildcards OK).  Need at least these
26077f26afSMike Bayerpassenv=ORACLE_HOME NLS_LANG
277f423e87SMike Bayer
289281e700SMike Bayer
299281e700SMike Bayercommands=
3047a6ffe0SMike Bayer  python -m pytest {posargs}
319281e700SMike Bayer
3235551841SMike Bayer[testenv:full]
339281e700SMike Bayer
349281e700SMike Bayer
359281e700SMike Bayer[testenv:coverage]
36eaaaef6aSMike Bayersetenv=
37eaaaef6aSMike Bayer  DISABLE_SQLALCHEMY_CEXT=1
38eaaaef6aSMike Bayer
39d7498cf4SMike Bayer# see also .coveragerc
409d617468SGilles Dartiguelonguedeps=pytest-cov
419d617468SGilles Dartiguelongue     coverage
429d617468SGilles Dartiguelongue     mock
439281e700SMike Bayercommands=
44d7498cf4SMike Bayer  python -m pytest --cov=sqlalchemy --cov-report term --cov-report xml \
45d7498cf4SMike Bayer    --exclude-tag memory-intensive \
46d7498cf4SMike Bayer    --exclude-tag timing-intensive \
47d7498cf4SMike Bayer    -k "not aaa_profiling" \
48d7498cf4SMike Bayer    {posargs}
49d7498cf4SMike Bayer
509281e700SMike Bayer
519281e700SMike Bayer[testenv:pep8]
521217d6ceSMike Bayerdeps=flake8
5330ab1a02SMike Bayercommands = python -m flake8 {posargs}
549281e700SMike Bayer
559281e700SMike Bayer
569281e700SMike Bayer[flake8]
579281e700SMike Bayershow-source = True
582743b674SMike Bayerignore = E711,E712,E721,N806
599281e700SMike Bayerexclude=.venv,.git,.tox,dist,doc,*egg,build
609281e700SMike Bayer