Skip to content

Commit

Permalink
Allow passing posargs to tox commands (#7822)
Browse files Browse the repository at this point in the history
  • Loading branch information
smackesey committed May 10, 2022
1 parent cd7de4d commit 629a689
Show file tree
Hide file tree
Showing 67 changed files with 133 additions and 125 deletions.
4 changes: 2 additions & 2 deletions examples/airflow_ingest/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/basic_pyspark/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/bollinger/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/dbt_example/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/deploy_docker/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/deploy_ecs/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/deploy_k8s/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/docs_snippets/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/emr_pyspark/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/ge_example/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/hacker_news/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/hacker_news_assets/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/memoized_development/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/modern_data_stack_assets/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/nyt-feed/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/run_attribution_example/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/software_defined_assets/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions examples/user_in_loop/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
2 changes: 1 addition & 1 deletion helm/dagster/schema/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ commands =

[testenv:pylint]
commands =
pylint -j0 --rcfile=../../../pyproject.toml schema_tests
pylint -j0 --rcfile=../../../pyproject.toml {posargs} schema_tests
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ commands =

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions integration_tests/test_suites/backcompat-test-suite/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ commands =

[testenv:pylint]
commands =
pylint -j0 --rcfile=../../../pyproject.toml dagit_service/repo.py tests
pylint -j0 --rcfile=../../../pyproject.toml {posargs} dagit_service/repo.py tests

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions integration_tests/test_suites/daemon-test-suite/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ commands =

[testenv:pylint]
commands =
pylint -j0 --rcfile=../../../pyproject.toml conftest repo utils monitoring_daemon_tests test_daemon.py test_memory.py test_queued.py
pylint -j0 --rcfile=../../../pyproject.toml {posargs} conftest repo utils monitoring_daemon_tests test_daemon.py test_memory.py test_queued.py

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ commands =

[testenv:pylint]
commands =
/bin/bash -c 'cd .. && pylint -j0 --rcfile=../pyproject.toml {{EXAMPLE_NAME}}/'
pylint -j0 --rcfile=../pyproject.toml {posargs} {{EXAMPLE_NAME}}

[testenv:mypy]
commands =
mypy --config=../pyproject.toml --non-interactive {posargs} .
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/automation/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/dagit/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/dagster-graphql/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/dagster-test/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/dagster/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../pyproject.toml --non-interactive .
mypy --config=../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-airbyte/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-airflow/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-aws/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-azure/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ commands =

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

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
2 changes: 1 addition & 1 deletion python_modules/libraries/dagster-celery-docker/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ commands =

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
2 changes: 1 addition & 1 deletion python_modules/libraries/dagster-celery-k8s/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ commands =

[testenv:mypy]
commands =
mypy --config=../../../pyproject.toml --non-interactive .
mypy --config=../../../pyproject.toml --non-interactive {posargs} .
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-celery/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ commands =

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

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

0 comments on commit 629a689

Please sign in to comment.