2017-11-05 01:50:42 -04:00
|
|
|
[flake8]
|
2018-02-25 18:06:11 -05:00
|
|
|
accept-encodings = utf-8
|
2017-11-05 01:50:42 -04:00
|
|
|
application-import-names = superset
|
|
|
|
exclude =
|
|
|
|
.tox
|
|
|
|
docs
|
|
|
|
superset/assets
|
2017-11-08 00:32:45 -05:00
|
|
|
superset/data
|
2017-11-05 01:50:42 -04:00
|
|
|
superset/migrations
|
|
|
|
superset/templates
|
2018-02-23 17:46:26 -05:00
|
|
|
ignore =
|
2018-02-23 19:42:09 -05:00
|
|
|
FI12
|
|
|
|
FI15
|
|
|
|
FI16
|
|
|
|
FI17
|
|
|
|
FI50
|
|
|
|
FI51
|
|
|
|
FI53
|
|
|
|
FI54
|
2017-11-05 01:50:42 -04:00
|
|
|
import-order-style = google
|
|
|
|
max-line-length = 90
|
2018-04-10 18:59:44 -04:00
|
|
|
require-code = true
|
2016-06-09 21:05:58 -04:00
|
|
|
|
|
|
|
[testenv]
|
2018-04-10 18:59:44 -04:00
|
|
|
commands =
|
|
|
|
{toxinidir}/superset/bin/superset db upgrade
|
|
|
|
nosetests {posargs}
|
2016-06-09 21:05:58 -04:00
|
|
|
deps =
|
2018-04-10 18:59:44 -04:00
|
|
|
-rrequirements.txt
|
|
|
|
-rrequirements-dev.txt
|
|
|
|
coverage
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
SUPERSET_CONFIG = tests.superset_test_config
|
|
|
|
SUPERSET_HOME = {envtmpdir}
|
|
|
|
py27-mysql: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
|
|
|
|
py34-mysql: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset
|
2018-04-18 00:30:12 -04:00
|
|
|
py{27,34,36}-postgres: SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://postgresuser:pguserpassword@localhost/superset
|
|
|
|
py{27,34,36}-sqlite: SUPERSET__SQLALCHEMY_DATABASE_URI = sqlite:////{envtmpdir}/superset.db
|
2018-01-11 00:46:10 -05:00
|
|
|
whitelist_externals =
|
|
|
|
npm
|
2018-04-10 18:59:44 -04:00
|
|
|
|
|
|
|
[testenv:eslint]
|
|
|
|
changedir = {toxinidir}/superset/assets
|
2016-06-09 21:05:58 -04:00
|
|
|
commands =
|
2018-04-10 18:59:44 -04:00
|
|
|
npm run lint
|
|
|
|
deps =
|
2016-06-09 21:05:58 -04:00
|
|
|
|
2017-11-05 01:50:42 -04:00
|
|
|
[testenv:flake8]
|
|
|
|
commands =
|
|
|
|
flake8
|
|
|
|
deps =
|
|
|
|
flake8
|
2018-02-25 18:06:11 -05:00
|
|
|
flake8-coding
|
2017-11-05 01:50:42 -04:00
|
|
|
flake8-commas
|
2018-02-23 19:42:09 -05:00
|
|
|
flake8-future-import
|
2017-11-05 01:50:42 -04:00
|
|
|
flake8-import-order
|
|
|
|
flake8-quotes
|
|
|
|
|
2016-09-20 17:14:49 -04:00
|
|
|
[testenv:javascript]
|
2018-01-11 00:46:10 -05:00
|
|
|
commands =
|
|
|
|
npm install -g npm@'>=5.6.0'
|
|
|
|
{toxinidir}/superset/assets/js_build.sh
|
2018-04-10 18:59:44 -04:00
|
|
|
deps =
|
2016-09-20 17:14:49 -04:00
|
|
|
|
2017-04-04 00:53:06 -04:00
|
|
|
[testenv:pylint]
|
|
|
|
commands =
|
2018-04-28 23:08:09 -04:00
|
|
|
pylint superset
|
2018-04-10 18:59:44 -04:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
|
|
|
-rrequirements-dev.txt
|
2016-06-09 21:05:58 -04:00
|
|
|
|
2018-04-10 18:59:44 -04:00
|
|
|
[tox]
|
|
|
|
envlist =
|
|
|
|
eslint
|
|
|
|
flake8
|
|
|
|
javascript
|
|
|
|
skipsdist = true
|