2019-01-22 11:21:13 -05:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
2017-11-05 01:50:42 -04:00
|
|
|
[flake8]
|
2018-02-25 18:06:11 -05:00
|
|
|
accept-encodings = utf-8
|
2018-09-06 17:55:48 -04:00
|
|
|
application-import-names =
|
|
|
|
superset
|
|
|
|
tests
|
2017-11-05 01:50:42 -04:00
|
|
|
exclude =
|
|
|
|
.tox
|
2018-07-20 18:26:33 -04:00
|
|
|
build
|
2017-11-05 01:50:42 -04:00
|
|
|
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
|
2019-03-01 16:38:06 -05:00
|
|
|
venv
|
2018-02-23 17:46:26 -05:00
|
|
|
ignore =
|
2019-04-23 15:04:50 -04:00
|
|
|
E121
|
|
|
|
E125
|
2018-02-23 19:42:09 -05:00
|
|
|
FI12
|
|
|
|
FI15
|
|
|
|
FI16
|
|
|
|
FI17
|
|
|
|
FI50
|
|
|
|
FI51
|
|
|
|
FI53
|
|
|
|
FI54
|
2019-01-16 23:40:16 -05:00
|
|
|
W504
|
|
|
|
W605
|
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
|
2018-10-16 20:59:34 -04:00
|
|
|
nosetests tests/load_examples_test.py
|
|
|
|
nosetests -e load_examples_test {posargs}
|
2016-06-09 21:05:58 -04:00
|
|
|
deps =
|
2018-04-10 18:59:44 -04:00
|
|
|
-rrequirements.txt
|
|
|
|
-rrequirements-dev.txt
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
SUPERSET_CONFIG = tests.superset_test_config
|
|
|
|
SUPERSET_HOME = {envtmpdir}
|
2018-08-07 16:22:19 -04:00
|
|
|
py36-mysql: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset
|
2018-10-05 13:44:45 -04:00
|
|
|
py36-postgres: SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://postgresuser:pguserpassword@localhost/superset
|
|
|
|
py36-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
|
|
|
|
2018-11-15 15:26:33 -05:00
|
|
|
[testenv:cypress-dashboard]
|
2018-09-06 17:55:48 -04:00
|
|
|
commands =
|
2018-12-21 13:24:49 -05:00
|
|
|
npm install -g npm@'>=6.5.0'
|
|
|
|
pip install -e {toxinidir}/
|
2018-11-15 15:26:33 -05:00
|
|
|
{toxinidir}/superset/assets/cypress_build.sh dashboard
|
2019-03-20 00:14:12 -04:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
|
|
|
-rrequirements-dev.txt
|
2018-11-15 15:26:33 -05:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
SUPERSET_CONFIG = tests.superset_test_config
|
|
|
|
SUPERSET_HOME = {envtmpdir}
|
|
|
|
|
|
|
|
[testenv:cypress-explore]
|
|
|
|
commands =
|
2018-12-21 13:24:49 -05:00
|
|
|
npm install -g npm@'>=6.5.0'
|
|
|
|
pip install -e {toxinidir}/
|
2018-11-15 15:26:33 -05:00
|
|
|
{toxinidir}/superset/assets/cypress_build.sh explore
|
2019-03-20 00:14:12 -04:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
|
|
|
-rrequirements-dev.txt
|
2018-11-15 15:26:33 -05:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
SUPERSET_CONFIG = tests.superset_test_config
|
|
|
|
SUPERSET_HOME = {envtmpdir}
|
|
|
|
|
|
|
|
[testenv:cypress-sqllab]
|
|
|
|
commands =
|
2018-12-21 13:24:49 -05:00
|
|
|
npm install -g npm@'>=6.5.0'
|
|
|
|
pip install -e {toxinidir}/
|
2018-11-15 15:26:33 -05:00
|
|
|
{toxinidir}/superset/assets/cypress_build.sh sqllab
|
2019-03-20 00:14:12 -04:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
|
|
|
-rrequirements-dev.txt
|
2018-09-06 17:55:48 -04:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
SUPERSET_CONFIG = tests.superset_test_config
|
|
|
|
SUPERSET_HOME = {envtmpdir}
|
|
|
|
|
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 =
|
2018-07-23 15:29:21 -04:00
|
|
|
flake8 {toxinidir}/
|
2017-11-05 01:50:42 -04:00
|
|
|
deps =
|
2018-07-23 15:29:21 -04:00
|
|
|
-rrequirements-dev.txt
|
2017-11-05 01:50:42 -04:00
|
|
|
|
2016-09-20 17:14:49 -04:00
|
|
|
[testenv:javascript]
|
2018-01-11 00:46:10 -05:00
|
|
|
commands =
|
2018-12-21 13:24:49 -05:00
|
|
|
npm install -g npm@'>=6.5.0'
|
2018-01-11 00:46:10 -05:00
|
|
|
{toxinidir}/superset/assets/js_build.sh
|
2018-04-10 18:59:44 -04:00
|
|
|
deps =
|
2016-09-20 17:14:49 -04:00
|
|
|
|
2019-03-20 00:14:12 -04:00
|
|
|
[testenv:license-check]
|
|
|
|
commands =
|
|
|
|
{toxinidir}/scripts/check_license.sh
|
|
|
|
passenv = *
|
|
|
|
whitelist_externals =
|
|
|
|
{toxinidir}/scripts/check_license.sh
|
|
|
|
|
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 =
|
2018-11-15 15:26:33 -05:00
|
|
|
cypress-dashboard
|
|
|
|
cypress-explore
|
|
|
|
cypress-sqllab
|
2018-04-10 18:59:44 -04:00
|
|
|
eslint
|
|
|
|
flake8
|
|
|
|
javascript
|
2018-07-18 18:55:01 -04:00
|
|
|
pylint
|
2019-01-12 23:28:12 -05:00
|
|
|
license-check
|
2018-04-10 18:59:44 -04:00
|
|
|
skipsdist = true
|