certbot/certbot-apache/tests
Adrien Ferrand c438a397a0
Enable mypy strict mode (#8766)
Built on top of #8748, this PR reenables mypy strict mode and adds the appropriate corrections to pass the types checks.

* Upgrade mypy

* First step for acme

* Cast for the rescue

* Fixing types for certbot

* Fix typing for certbot-nginx

* Finalize type fixes, configure no optional strict check for mypy in tox

* Align requirements

* Isort

* Pylint

* Protocol for python 3.6

* Use Python 3.9 for mypy, make code compatible with Python 3.8<

* Pylint and mypy

* Pragma no cover

* Pythonic NotImplemented constant

* More type definitions

* Add comments

* Simplify typing logic

* Use vararg tuple

* Relax constraints on mypy

* Add more type

* Do not silence error if target is not defined

* Conditionally import Protocol for type checking only

* Clean up imports

* Add comments

* Align python version linting with mypy and coverage

* Just ignore types in an unused module

* Add comments

* Fix lint

* Work in progress

* Finish type control

* Isort

* Fix pylint

* Fix imports

* Fix cli subparser

* Some fixes

* Coverage

* Remove --no-strict-optional (obviously...)

* Update certbot-apache/certbot_apache/_internal/configurator.py

Co-authored-by: Brad Warren <bmw@users.noreply.github.com>

* Update certbot/certbot/_internal/display/completer.py

Co-authored-by: Brad Warren <bmw@users.noreply.github.com>

* Cleanup dns_google

* Improve lock controls and fix subparser

* Use the expected interfaces

* Fix code

Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
2021-04-05 15:04:21 -07:00
..
apache-conf-files Add Ubuntu 20.10 test farm tests (#8414) 2020-10-28 15:08:16 -07:00
testdata Spelling and grammar fixes (#7695) 2020-01-17 18:55:51 +01:00
augeasnode_test.py Added missing from typing imports. (#8724) 2021-03-23 21:33:47 +01:00
autohsts_test.py Remove dependency on six (#8650) 2021-02-09 11:43:15 -08:00
centos6_test.py Minor bugfixes (#7891) 2020-04-13 10:41:39 -07:00
centos_test.py Use in dict rather than "in dict.keys()". Fix linting warnings about "not in". (#8298) 2020-09-19 11:35:49 +02:00
complex_parsing_test.py Reorganize imports (#7616) 2019-12-09 15:50:20 -05:00
configurator_reverter_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
configurator_test.py Remove dependency on six (#8650) 2021-02-09 11:43:15 -08:00
debian_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
display_ops_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
dualnode_test.py Use better asserts. Added notes to style guide. (#8451) 2020-11-12 23:33:02 +01:00
entrypoint_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
fedora_test.py Use in dict rather than "in dict.keys()". Fix linting warnings about "not in". (#8298) 2020-09-19 11:35:49 +02:00
gentoo_test.py Use in dict rather than "in dict.keys()". Fix linting warnings about "not in". (#8298) 2020-09-19 11:35:49 +02:00
http_01_test.py Added missing from typing imports. (#8724) 2021-03-23 21:33:47 +01:00
obj_test.py Use better asserts. Added notes to style guide. (#8451) 2020-11-12 23:33:02 +01:00
parser_test.py Enable mypy strict mode (#8766) 2021-04-05 15:04:21 -07:00
parsernode_configurator_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
parsernode_test.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
parsernode_util_test.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
util.py Removed unnecessary unittest.TestCase.setUp/tearDown calls. (#8264) 2020-09-19 10:38:40 +02:00