passerelle/tox.ini

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.6 KiB
INI
Raw Normal View History

[tox]
2018-08-09 17:24:50 +02:00
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
envlist = py3-django111-black-coverage,py3-django22
[testenv]
2018-08-09 17:24:50 +02:00
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=passerelle.settings
PASSERELLE_SETTINGS_FILE=tests/settings.py
2019-03-12 11:49:22 +01:00
BRANCH_NAME={env:BRANCH_NAME:}
WCSCTL=wcs/wcsctl.py
SETUPTOOLS_USE_DISTUTILS=stdlib
fast: FAST=--nomigrations
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc -Wignore
deps =
django111: django>=1.11,<1.12
django22: django>=2.2,<2.3
psycopg2-binary
pytest-cov
pytest-django
pytest!=6.0.0
WebTest
mock<4
httmock
2016-05-09 17:18:31 +02:00
python-dateutil
pylint
pylint-django
2018-05-03 18:14:58 +02:00
django-webtest<1.9.3
lxml
mohawk
pytest-freezegun
pytest-httpbin
2019-02-15 10:57:26 +01:00
pytest-localserver
pytest-sftpserver
Quixote>=3.0,<3.2
vobject
django-ratelimit
pyquery
2020-01-20 15:41:49 +01:00
zeep<3.3
black: pre-commit
commands =
./get_wcs.sh
py.test {posargs: {env:FAST:} {env:COVERAGE:} {env:JUNIT:} tests/}
coverage: ./pylint.sh passerelle/
black: pre-commit run black --all-files --show-diff-on-failure
[pytest]
filterwarnings = default
# to delete when using python3, it's a warning inside ElementTree
ignore:.*tree.iter().*:PendingDeprecationWarning
# pyproj warning about deprecation of '+init=authority:code which comes from using Proj(init='EPSG:4326') instead of Proj('EPSG:4326')
# I tried the new syntax but it broke some opengis tests
module:.*init.*authority.*code.*syntax is deprecated:DeprecationWarning:pyproj
# wcs root directory must be renamed to fix this one
ignore:Not importing directory.*/wcs':ImportWarning