Compare commits

...

6 Commits

Author SHA1 Message Date
Erica Portnoy
8497fa920e rename errors_test 2020-04-14 17:56:41 -07:00
Erica Portnoy
ab6f15d703 Rename certbot/crypto_util_test.py to avoid mypy duplicate error 2020-04-14 15:45:17 -07:00
Erica Portnoy
150a885bf9 only run mypy, not lint, on test files 2020-04-14 15:29:30 -07:00
Erica Portnoy
d3ccd149e9 add missing mypy type to quash error 2020-04-14 14:30:38 -07:00
Erica Portnoy
a80c263480 Rename certbot/client_test.py to avoid mypy duplicate error 2020-04-14 14:18:01 -07:00
Erica Portnoy
32cc7e118c Add all testing paths to lint and mypy tox sources 2020-04-14 14:17:32 -07:00
5 changed files with 22 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ def build_lexicon_config(lexicon_provider_name, lexicon_options, provider_option
config.update(provider_options)
else:
# Lexicon 3.x
provider_config = {}
provider_config = {} # type: Dict[str, Any]
provider_config.update(provider_options)
config[lexicon_provider_name] = provider_config
config = ConfigResolver().with_dict(config).with_env()

22
tox.ini
View File

@@ -58,6 +58,26 @@ source_paths =
certbot-dns-sakuracloud/certbot_dns_sakuracloud
certbot-nginx/certbot_nginx
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 =
@@ -145,7 +165,7 @@ basepython = python3
commands =
{[base]install_packages}
{[base]pip_install} certbot[dev3]
mypy {[base]source_paths}
mypy {[base]source_paths_with_tests} --config-file {toxinidir}/mypy.ini
[testenv:apacheconftest]
commands =