From 150a885bf98d35445172d0dd62acbc08a4c19e54 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Tue, 14 Apr 2020 15:29:30 -0700 Subject: [PATCH] only run mypy, not lint, on test files --- tox.ini | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/tox.ini b/tox.ini index 05535a6f9..e7cfb7e59 100644 --- a/tox.ini +++ b/tox.ini @@ -39,43 +39,45 @@ install_packages = python {toxinidir}/tools/pip_install_editable.py {[base]all_packages} source_paths = acme/acme - acme/tests certbot/certbot - certbot/tests certbot-apache/certbot_apache - certbot-apache/tests certbot-compatibility-test/certbot_compatibility_test certbot-dns-cloudflare/certbot_dns_cloudflare - certbot-dns-cloudflare/tests certbot-dns-cloudxns/certbot_dns_cloudxns - certbot-dns-cloudxns/tests certbot-dns-digitalocean/certbot_dns_digitalocean - certbot-dns-digitalocean/tests certbot-dns-dnsimple/certbot_dns_dnsimple - certbot-dns-dnsimple/tests certbot-dns-dnsmadeeasy/certbot_dns_dnsmadeeasy - certbot-dns-dnsmadeeasy/tests certbot-dns-gehirn/certbot_dns_gehirn - certbot-dns-gehirn/tests certbot-dns-google/certbot_dns_google - certbot-dns-google/tests certbot-dns-linode/certbot_dns_linode - certbot-dns-linode/tests certbot-dns-luadns/certbot_dns_luadns - certbot-dns-luadns/tests certbot-dns-nsone/certbot_dns_nsone - certbot-dns-nsone/tests certbot-dns-ovh/certbot_dns_ovh - certbot-dns-ovh/tests certbot-dns-rfc2136/certbot_dns_rfc2136 - certbot-dns-rfc2136/tests certbot-dns-route53/certbot_dns_route53 - certbot-dns-route53/tests certbot-dns-sakuracloud/certbot_dns_sakuracloud - certbot-dns-sakuracloud/tests certbot-nginx/certbot_nginx - certbot-nginx/tests tests/lock_test.py +source_paths_with_tests = + {[base]source_paths} + acme/tests + certbot/tests + certbot-apache/tests + certbot-dns-cloudflare/tests + certbot-dns-cloudxns/tests + certbot-dns-digitalocean/tests + certbot-dns-dnsimple/tests + certbot-dns-dnsmadeeasy/tests + certbot-dns-gehirn/tests + certbot-dns-google/tests + certbot-dns-linode/tests + certbot-dns-luadns/tests + certbot-dns-nsone/tests + certbot-dns-ovh/tests + certbot-dns-rfc2136/tests + certbot-dns-route53/tests + certbot-dns-sakuracloud/tests + certbot-nginx/tests [testenv] passenv = @@ -163,7 +165,7 @@ basepython = python3 commands = {[base]install_packages} {[base]pip_install} certbot[dev3] - mypy {[base]source_paths} --config-file {toxinidir}/mypy.ini + mypy {[base]source_paths_with_tests} --config-file {toxinidir}/mypy.ini [testenv:apacheconftest] commands =