Skip to content

Commit

Permalink
Toxfile adjustments (adding mypy) (#7867)
Browse files Browse the repository at this point in the history
  • Loading branch information
smackesey committed May 13, 2022
1 parent b5d52ea commit 6732a87
Show file tree
Hide file tree
Showing 72 changed files with 382 additions and 390 deletions.
10 changes: 5 additions & 5 deletions examples/airflow_ingest/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -17,10 +17,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} airflow_ingest
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} airflow_ingest
10 changes: 5 additions & 5 deletions examples/basic_pyspark/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -18,10 +18,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
8 changes: 4 additions & 4 deletions examples/bollinger/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ commands =
!windows: /bin/bash -c '! pip list --exclude-editable | grep -e dagster -e dagit'
pytest -vv

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} bollinger bollinger_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} bollinger bollinger_tests
10 changes: 5 additions & 5 deletions examples/dbt_example/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -24,10 +24,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} dbt_example dbt_example_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} dbt_example dbt_example_tests
10 changes: 5 additions & 5 deletions examples/deploy_docker/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -16,10 +16,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
10 changes: 5 additions & 5 deletions examples/deploy_ecs/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -17,10 +17,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -s -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
10 changes: 5 additions & 5 deletions examples/deploy_k8s/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -21,10 +21,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} example_project tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} example_project tests
10 changes: 5 additions & 5 deletions examples/docs_snippets/tox.ini
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint

[testenv]
usedevelop = true
Expand Down Expand Up @@ -30,10 +30,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} docs_snippets docs_snippets_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} docs_snippets docs_snippets_tests
10 changes: 5 additions & 5 deletions examples/emr_pyspark/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -19,10 +19,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} .
10 changes: 5 additions & 5 deletions examples/ge_example/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -21,10 +21,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} ge_example ge_example_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} ge_example ge_example_tests
8 changes: 4 additions & 4 deletions examples/hacker_news/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} hacker_news hacker_news_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} hacker_news hacker_news_tests
8 changes: 4 additions & 4 deletions examples/hacker_news_assets/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} hacker_news_assets hacker_news_assets_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} hacker_news_assets hacker_news_assets_tests
10 changes: 5 additions & 5 deletions examples/memoized_development/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -19,10 +19,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} memoized_development tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} memoized_development tests
8 changes: 4 additions & 4 deletions examples/modern_data_stack_assets/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} modern_data_stack_assets modern_data_stack_assets_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} modern_data_stack_assets modern_data_stack_assets_tests
10 changes: 5 additions & 5 deletions examples/nyt-feed/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -17,10 +17,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} nyt_feed nyt_feed_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} nyt_feed nyt_feed_tests
10 changes: 5 additions & 5 deletions examples/run_attribution_example/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -19,10 +19,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} run_attribution_example run_attribution_example_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} run_attribution_example run_attribution_example_tests
10 changes: 5 additions & 5 deletions examples/software_defined_assets/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -19,10 +19,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} software_defined_assets software_defined_assets_tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} software_defined_assets software_defined_assets_tests
10 changes: 5 additions & 5 deletions examples/user_in_loop/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,36,35}-{unix,windows},pylint
envlist = py{37,36,35}-{unix,windows},mypy,pylint
skipsdist = True

[testenv]
Expand All @@ -17,10 +17,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest -vv {posargs}

[testenv:pylint]
[testenv:mypy]
commands =
pylint -j0 --rcfile=../../pyproject.toml {posargs} user_in_loop tests
mypy --config=../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:mypy]
[testenv:pylint]
commands =
mypy --config=../../pyproject.toml --non-interactive {posargs} .
pylint -j0 --rcfile=../../pyproject.toml {posargs} user_in_loop tests
9 changes: 7 additions & 2 deletions helm/dagster/schema/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,38,37,36}-{unix,windows},pylint,mypy
envlist = py{39,38,37,36}-{unix,windows},mypy,pylint

[testenv]
setenv =
Expand All @@ -13,9 +13,10 @@ deps =
-e ../../../python_modules/libraries/dagster-azure
-e ../../../python_modules/libraries/dagster-gcp
-e ../../../python_modules/libraries/dagster-k8s
-e .[test]
pyparsing<3.0.0 # Hint to nudge pypi to avoid a conflict between various dagster deps
usedevelop = true
extras =
test
allowlist_externals =
/bin/bash
echo
Expand All @@ -24,6 +25,10 @@ commands =
echo -e "--- \033[0;32m:pytest: Running tox tests\033[0m"
pytest --reruns 2 -vv {posargs}

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive --install-types {posargs} .

[testenv:pylint]
commands =
pylint -j0 --rcfile=../../../pyproject.toml {posargs} schema_tests

0 comments on commit 6732a87

Please sign in to comment.