2019-01-18 20:09:19 -05:00
|
|
|
# Specifies Python package versions for development and building Docker images.
|
2021-03-24 19:58:15 -04:00
|
|
|
# It includes in particular packages not specified in tools/certbot_constraints.txt.
|
2019-01-17 18:21:13 -05:00
|
|
|
# Some dev package versions specified here may be overridden by higher level constraints
|
2021-03-26 02:51:59 -04:00
|
|
|
# files during tests (eg. tools/oldest_constraints.txt).
|
2017-11-08 13:58:00 -05:00
|
|
|
alabaster==0.7.10
|
2020-03-23 20:05:22 -04:00
|
|
|
apacheconfig==0.3.2
|
2017-12-01 13:59:55 -05:00
|
|
|
apipkg==1.4
|
2019-10-21 16:54:17 -04:00
|
|
|
appnope==0.1.0
|
2017-12-18 15:31:36 -05:00
|
|
|
asn1crypto==0.22.0
|
Lint certbot code on Python 3, and update Pylint to the latest version (#7551)
Part of #7550
This PR makes appropriate corrections to run pylint on Python 3.
Why not keeping the dependencies unchanged and just run pylint on Python 3?
Because the old version of pylint breaks horribly on Python 3 because of unsupported version of astroid.
Why updating pylint + astroid to the latest version ?
Because this version only fixes some internal errors occuring during the lint of Certbot code, and is also ready to run gracefully on Python 3.8.
Why upgrading mypy ?
Because the old version does not support the new version of astroid required to run pylint correctly.
Why not upgrading mypy to its latest version ?
Because this latest version includes a new typshed version, that adds a lot of new type definitions, and brings dozens of new errors on the Certbot codebase. I would like to fix that in a future PR.
That said so, the work has been to find the correct set of new dependency versions, then configure pylint for sane configuration errors in our situation, disable irrelevant lintings errors, then fixing (or ignoring for good reason) the remaining mypy errors.
I also made PyLint and MyPy checks run correctly on Windows.
* Start configuration
* Reconfigure travis
* Suspend a check specific to python 3. Start fixing code.
* Repair call_args
* Fix return + elif lints
* Reconfigure development to run mainly on python3
* Remove incompatible Python 3.4 jobs
* Suspend pylint in some assertions
* Remove pylint in dev
* Take first mypy that supports typed-ast>=1.4.0 to limit the migration path
* Various return + else lint errors
* Find a set of deps that is working with current mypy version
* Update local oldest requirements
* Remove all current pylint errors
* Rebuild letsencrypt-auto
* Update mypy to fix pylint with new astroid version, and fix mypy issues
* Explain type: ignore
* Reconfigure tox, fix none path
* Simplify pinning
* Remove useless directive
* Remove debugging code
* Remove continue
* Update requirements
* Disable unsubscriptable-object check
* Disable one check, enabling two more
* Plug certbot dev version for oldest requirements
* Remove useless disable directives
* Remove useless no-member disable
* Remove no-else-* checks. Use elif in symetric branches.
* Add back assertion
* Add new line
* Remove unused pylint disable
* Remove other pylint disable
2019-12-10 17:12:50 -05:00
|
|
|
astroid==2.3.3
|
2017-12-18 15:31:36 -05:00
|
|
|
attrs==17.3.0
|
2020-08-06 19:32:57 -04:00
|
|
|
azure-devops==6.0.0b2
|
2017-11-08 13:58:00 -05:00
|
|
|
Babel==2.5.1
|
2020-07-17 16:01:04 -04:00
|
|
|
backcall==0.2.0
|
2019-04-02 16:48:22 -04:00
|
|
|
backports.functools-lru-cache==1.5
|
2017-11-08 13:58:00 -05:00
|
|
|
backports.shutil-get-terminal-size==1.0.0
|
2019-12-18 16:21:54 -05:00
|
|
|
backports.ssl-match-hostname==3.7.0.1
|
|
|
|
|
bcrypt==3.1.6
|
2021-02-23 18:29:52 -05:00
|
|
|
boto3==1.17.4
|
|
|
|
|
botocore==1.20.4
|
2019-12-18 16:21:54 -05:00
|
|
|
cached-property==1.5.1
|
2020-01-24 18:25:03 -05:00
|
|
|
cloudflare==2.3.1
|
2019-04-02 16:48:22 -04:00
|
|
|
configparser==3.7.4
|
2019-10-21 16:54:17 -04:00
|
|
|
contextlib2==0.6.0.post1
|
2019-09-16 14:14:26 -04:00
|
|
|
coverage==4.5.4
|
2020-01-16 16:47:23 -05:00
|
|
|
decorator==4.4.1
|
2020-08-06 19:32:57 -04:00
|
|
|
deprecated==1.2.10
|
2020-01-24 18:02:57 -05:00
|
|
|
dns-lexicon==3.3.17
|
2021-01-25 18:07:43 -05:00
|
|
|
dnspython==2.1.0
|
2020-11-19 15:48:36 -05:00
|
|
|
docker==4.3.1
|
|
|
|
|
docker-compose==1.26.2
|
2019-12-18 16:21:54 -05:00
|
|
|
docker-pycreds==0.4.0
|
|
|
|
|
dockerpty==0.4.1
|
|
|
|
|
docopt==0.6.2
|
2020-01-24 17:02:54 -05:00
|
|
|
docutils==0.15.2
|
2017-12-01 13:59:55 -05:00
|
|
|
execnet==1.5.0
|
2019-12-18 16:21:54 -05:00
|
|
|
functools32==3.2.3.post2
|
2017-11-08 13:58:00 -05:00
|
|
|
future==0.16.0
|
2020-01-24 17:02:54 -05:00
|
|
|
futures==3.3.0
|
2019-10-21 16:54:17 -04:00
|
|
|
filelock==3.0.12
|
|
|
|
|
google-api-python-client==1.5.5
|
2020-09-30 20:15:06 -04:00
|
|
|
httplib2==0.18.1
|
2017-11-08 13:58:00 -05:00
|
|
|
imagesize==0.7.1
|
2019-10-21 16:54:17 -04:00
|
|
|
importlib-metadata==0.23
|
2020-01-16 16:47:23 -05:00
|
|
|
ipdb==0.12.3
|
2020-07-17 16:01:04 -04:00
|
|
|
ipython==7.9.0
|
2017-11-08 13:58:00 -05:00
|
|
|
ipython-genutils==0.2.0
|
2020-08-06 19:32:57 -04:00
|
|
|
isodate==0.6.0
|
Lint certbot code on Python 3, and update Pylint to the latest version (#7551)
Part of #7550
This PR makes appropriate corrections to run pylint on Python 3.
Why not keeping the dependencies unchanged and just run pylint on Python 3?
Because the old version of pylint breaks horribly on Python 3 because of unsupported version of astroid.
Why updating pylint + astroid to the latest version ?
Because this version only fixes some internal errors occuring during the lint of Certbot code, and is also ready to run gracefully on Python 3.8.
Why upgrading mypy ?
Because the old version does not support the new version of astroid required to run pylint correctly.
Why not upgrading mypy to its latest version ?
Because this latest version includes a new typshed version, that adds a lot of new type definitions, and brings dozens of new errors on the Certbot codebase. I would like to fix that in a future PR.
That said so, the work has been to find the correct set of new dependency versions, then configure pylint for sane configuration errors in our situation, disable irrelevant lintings errors, then fixing (or ignoring for good reason) the remaining mypy errors.
I also made PyLint and MyPy checks run correctly on Windows.
* Start configuration
* Reconfigure travis
* Suspend a check specific to python 3. Start fixing code.
* Repair call_args
* Fix return + elif lints
* Reconfigure development to run mainly on python3
* Remove incompatible Python 3.4 jobs
* Suspend pylint in some assertions
* Remove pylint in dev
* Take first mypy that supports typed-ast>=1.4.0 to limit the migration path
* Various return + else lint errors
* Find a set of deps that is working with current mypy version
* Update local oldest requirements
* Remove all current pylint errors
* Rebuild letsencrypt-auto
* Update mypy to fix pylint with new astroid version, and fix mypy issues
* Explain type: ignore
* Reconfigure tox, fix none path
* Simplify pinning
* Remove useless directive
* Remove debugging code
* Remove continue
* Update requirements
* Disable unsubscriptable-object check
* Disable one check, enabling two more
* Plug certbot dev version for oldest requirements
* Remove useless disable directives
* Remove useless no-member disable
* Remove no-else-* checks. Use elif in symetric branches.
* Add back assertion
* Add new line
* Remove unused pylint disable
* Remove other pylint disable
2019-12-10 17:12:50 -05:00
|
|
|
isort==4.3.21
|
2020-07-17 16:01:04 -04:00
|
|
|
jedi==0.17.1
|
2017-11-08 13:58:00 -05:00
|
|
|
Jinja2==2.9.6
|
2020-01-24 17:02:54 -05:00
|
|
|
jmespath==0.9.4
|
2018-07-09 12:16:08 -04:00
|
|
|
josepy==1.1.0
|
2021-03-09 18:56:51 -05:00
|
|
|
jsonpickle==2.0.0
|
2019-12-18 16:21:54 -05:00
|
|
|
jsonschema==2.6.0
|
Lint certbot code on Python 3, and update Pylint to the latest version (#7551)
Part of #7550
This PR makes appropriate corrections to run pylint on Python 3.
Why not keeping the dependencies unchanged and just run pylint on Python 3?
Because the old version of pylint breaks horribly on Python 3 because of unsupported version of astroid.
Why updating pylint + astroid to the latest version ?
Because this version only fixes some internal errors occuring during the lint of Certbot code, and is also ready to run gracefully on Python 3.8.
Why upgrading mypy ?
Because the old version does not support the new version of astroid required to run pylint correctly.
Why not upgrading mypy to its latest version ?
Because this latest version includes a new typshed version, that adds a lot of new type definitions, and brings dozens of new errors on the Certbot codebase. I would like to fix that in a future PR.
That said so, the work has been to find the correct set of new dependency versions, then configure pylint for sane configuration errors in our situation, disable irrelevant lintings errors, then fixing (or ignoring for good reason) the remaining mypy errors.
I also made PyLint and MyPy checks run correctly on Windows.
* Start configuration
* Reconfigure travis
* Suspend a check specific to python 3. Start fixing code.
* Repair call_args
* Fix return + elif lints
* Reconfigure development to run mainly on python3
* Remove incompatible Python 3.4 jobs
* Suspend pylint in some assertions
* Remove pylint in dev
* Take first mypy that supports typed-ast>=1.4.0 to limit the migration path
* Various return + else lint errors
* Find a set of deps that is working with current mypy version
* Update local oldest requirements
* Remove all current pylint errors
* Rebuild letsencrypt-auto
* Update mypy to fix pylint with new astroid version, and fix mypy issues
* Explain type: ignore
* Reconfigure tox, fix none path
* Simplify pinning
* Remove useless directive
* Remove debugging code
* Remove continue
* Update requirements
* Disable unsubscriptable-object check
* Disable one check, enabling two more
* Plug certbot dev version for oldest requirements
* Remove useless disable directives
* Remove useless no-member disable
* Remove no-else-* checks. Use elif in symetric branches.
* Add back assertion
* Add new line
* Remove unused pylint disable
* Remove other pylint disable
2019-12-10 17:12:50 -05:00
|
|
|
lazy-object-proxy==1.4.3
|
2017-12-18 15:31:36 -05:00
|
|
|
logger==1.4
|
2017-11-08 13:58:00 -05:00
|
|
|
logilab-common==1.4.1
|
2021-03-19 17:27:29 -04:00
|
|
|
MarkupSafe==1.1.1
|
2019-04-02 16:48:22 -04:00
|
|
|
mccabe==0.6.1
|
2019-10-21 16:54:17 -04:00
|
|
|
more-itertools==5.0.0
|
2020-08-06 19:32:57 -04:00
|
|
|
msrest==0.6.18
|
Upgrade to mypy 0.812 (#8748)
Fixes #8425
This PR upgrades mypy to the latest version available, 0.812.
Given the advanced type inference capabilities provided by this newer version, this PRs also fixes various type inconsistencies that are now detected. Here are the non obvious changes done to fix types:
* typing in mixins has been solved using `Protocol` classes, as recommended by mypy (https://mypy.readthedocs.io/en/latest/more_types.html#mixin-classes, https://mypy.readthedocs.io/en/stable/protocols.html)
* `cast` when we are playing with `Union` types
This PR also disables the strict optional checks that have been enable by default in recent versions of mypy. Once this PR is merged, I will create an issue to study how these checks can be enabled.
`typing.Protocol` is available only since Python 3.8. To keep compatibility with Python 3.6, I try to import the class `Protocol` from `typing`, and fallback to assign `object` to `Protocol` if that fails. This way the code is working with all versions of Python, but the mypy check can be run only with Python 3.8+ because it needs the protocol feature. As a consequence, tox runs mypy under Python 3.8.
Alternatives are:
* importing `typing_extensions`, that proposes backport of newest typing features to Python 3.6, but this implies to add a dependency to Certbot just to run mypy
* redesign the concerned classes to not use mixins, or use them differently, but this implies to modify the code itself even if there is nothing wrong with it and it is just a matter of instructing mypy to understand in which context the mixins can be used
* ignoring type for these classes with `# type: ignore` but we loose the benefit of mypy for them
* 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
2021-04-02 14:54:40 -04:00
|
|
|
mypy==0.812
|
Lint certbot code on Python 3, and update Pylint to the latest version (#7551)
Part of #7550
This PR makes appropriate corrections to run pylint on Python 3.
Why not keeping the dependencies unchanged and just run pylint on Python 3?
Because the old version of pylint breaks horribly on Python 3 because of unsupported version of astroid.
Why updating pylint + astroid to the latest version ?
Because this version only fixes some internal errors occuring during the lint of Certbot code, and is also ready to run gracefully on Python 3.8.
Why upgrading mypy ?
Because the old version does not support the new version of astroid required to run pylint correctly.
Why not upgrading mypy to its latest version ?
Because this latest version includes a new typshed version, that adds a lot of new type definitions, and brings dozens of new errors on the Certbot codebase. I would like to fix that in a future PR.
That said so, the work has been to find the correct set of new dependency versions, then configure pylint for sane configuration errors in our situation, disable irrelevant lintings errors, then fixing (or ignoring for good reason) the remaining mypy errors.
I also made PyLint and MyPy checks run correctly on Windows.
* Start configuration
* Reconfigure travis
* Suspend a check specific to python 3. Start fixing code.
* Repair call_args
* Fix return + elif lints
* Reconfigure development to run mainly on python3
* Remove incompatible Python 3.4 jobs
* Suspend pylint in some assertions
* Remove pylint in dev
* Take first mypy that supports typed-ast>=1.4.0 to limit the migration path
* Various return + else lint errors
* Find a set of deps that is working with current mypy version
* Update local oldest requirements
* Remove all current pylint errors
* Rebuild letsencrypt-auto
* Update mypy to fix pylint with new astroid version, and fix mypy issues
* Explain type: ignore
* Reconfigure tox, fix none path
* Simplify pinning
* Remove useless directive
* Remove debugging code
* Remove continue
* Update requirements
* Disable unsubscriptable-object check
* Disable one check, enabling two more
* Plug certbot dev version for oldest requirements
* Remove useless disable directives
* Remove useless no-member disable
* Remove no-else-* checks. Use elif in symetric branches.
* Add back assertion
* Add new line
* Remove unused pylint disable
* Remove other pylint disable
2019-12-10 17:12:50 -05:00
|
|
|
mypy-extensions==0.4.3
|
2017-12-18 15:31:36 -05:00
|
|
|
ndg-httpsclient==0.3.2
|
2019-10-21 16:54:17 -04:00
|
|
|
oauth2client==4.0.0
|
2020-08-06 19:32:57 -04:00
|
|
|
oauthlib==3.1.0
|
2019-10-21 16:54:17 -04:00
|
|
|
packaging==19.2
|
2019-12-18 16:21:54 -05:00
|
|
|
paramiko==2.4.2
|
2020-07-17 16:01:04 -04:00
|
|
|
parso==0.7.0
|
2020-01-16 16:47:23 -05:00
|
|
|
pathlib2==2.3.5
|
2019-07-18 18:44:01 -04:00
|
|
|
pexpect==4.7.0
|
2020-01-16 16:47:23 -05:00
|
|
|
pickleshare==0.7.5
|
2018-06-07 10:50:36 -04:00
|
|
|
pkginfo==1.4.2
|
2019-10-23 04:50:18 -04:00
|
|
|
pluggy==0.13.0
|
2020-01-07 12:57:43 -05:00
|
|
|
ply==3.4
|
2020-07-17 16:01:04 -04:00
|
|
|
prompt-toolkit==2.0.10
|
2019-07-18 18:44:01 -04:00
|
|
|
ptyprocess==0.6.0
|
2019-07-02 13:02:00 -04:00
|
|
|
py==1.8.0
|
2017-12-18 15:31:36 -05:00
|
|
|
pyasn1==0.1.9
|
|
|
|
|
pyasn1-modules==0.0.10
|
2020-08-06 19:32:57 -04:00
|
|
|
PyGithub==1.52
|
2017-11-08 13:58:00 -05:00
|
|
|
Pygments==2.2.0
|
2020-08-06 19:32:57 -04:00
|
|
|
pyjwt==1.7.1
|
Lint certbot code on Python 3, and update Pylint to the latest version (#7551)
Part of #7550
This PR makes appropriate corrections to run pylint on Python 3.
Why not keeping the dependencies unchanged and just run pylint on Python 3?
Because the old version of pylint breaks horribly on Python 3 because of unsupported version of astroid.
Why updating pylint + astroid to the latest version ?
Because this version only fixes some internal errors occuring during the lint of Certbot code, and is also ready to run gracefully on Python 3.8.
Why upgrading mypy ?
Because the old version does not support the new version of astroid required to run pylint correctly.
Why not upgrading mypy to its latest version ?
Because this latest version includes a new typshed version, that adds a lot of new type definitions, and brings dozens of new errors on the Certbot codebase. I would like to fix that in a future PR.
That said so, the work has been to find the correct set of new dependency versions, then configure pylint for sane configuration errors in our situation, disable irrelevant lintings errors, then fixing (or ignoring for good reason) the remaining mypy errors.
I also made PyLint and MyPy checks run correctly on Windows.
* Start configuration
* Reconfigure travis
* Suspend a check specific to python 3. Start fixing code.
* Repair call_args
* Fix return + elif lints
* Reconfigure development to run mainly on python3
* Remove incompatible Python 3.4 jobs
* Suspend pylint in some assertions
* Remove pylint in dev
* Take first mypy that supports typed-ast>=1.4.0 to limit the migration path
* Various return + else lint errors
* Find a set of deps that is working with current mypy version
* Update local oldest requirements
* Remove all current pylint errors
* Rebuild letsencrypt-auto
* Update mypy to fix pylint with new astroid version, and fix mypy issues
* Explain type: ignore
* Reconfigure tox, fix none path
* Simplify pinning
* Remove useless directive
* Remove debugging code
* Remove continue
* Update requirements
* Disable unsubscriptable-object check
* Disable one check, enabling two more
* Plug certbot dev version for oldest requirements
* Remove useless disable directives
* Remove useless no-member disable
* Remove no-else-* checks. Use elif in symetric branches.
* Add back assertion
* Add new line
* Remove unused pylint disable
* Remove other pylint disable
2019-12-10 17:12:50 -05:00
|
|
|
pylint==2.4.3
|
2021-04-02 13:37:19 -04:00
|
|
|
pynacl==1.3.0
|
2019-09-23 15:29:18 -04:00
|
|
|
# If pynsist version is upgraded, our NSIS template windows-installer/template.nsi
|
|
|
|
|
# must be upgraded if necessary using the new built-in one from pynsist.
|
2021-04-02 13:37:19 -04:00
|
|
|
pynsist==2.7
|
2017-12-01 13:59:55 -05:00
|
|
|
pytest==3.2.5
|
|
|
|
|
pytest-cov==2.5.1
|
|
|
|
|
pytest-forked==0.2
|
2018-07-31 13:31:36 -04:00
|
|
|
pytest-xdist==1.22.5
|
2019-03-01 16:18:06 -05:00
|
|
|
pytest-sugar==0.9.2
|
2019-04-11 21:07:36 -04:00
|
|
|
pytest-rerunfailures==4.2
|
2020-01-24 17:02:54 -05:00
|
|
|
python-dateutil==2.8.1
|
2021-03-09 18:56:51 -05:00
|
|
|
python-digitalocean==1.15.0
|
2020-11-19 15:48:36 -05:00
|
|
|
python-dotenv==0.14.0
|
2021-01-06 19:17:34 -05:00
|
|
|
pywin32==300
|
2020-11-19 15:48:36 -05:00
|
|
|
PyYAML==5.3.1
|
2017-11-08 13:58:00 -05:00
|
|
|
repoze.sphinx.autointerface==0.8
|
|
|
|
|
requests-file==1.4.2
|
2020-08-06 19:32:57 -04:00
|
|
|
requests-oauthlib==1.3.0
|
2017-11-08 13:58:00 -05:00
|
|
|
requests-toolbelt==0.8.0
|
|
|
|
|
rsa==3.4.2
|
2020-01-24 17:02:54 -05:00
|
|
|
s3transfer==0.3.1
|
2020-01-16 16:47:23 -05:00
|
|
|
scandir==1.10.0
|
2017-11-08 13:58:00 -05:00
|
|
|
simplegeneric==0.8.1
|
2019-04-02 16:48:22 -04:00
|
|
|
singledispatch==3.4.0.3
|
2017-11-08 13:58:00 -05:00
|
|
|
snowballstemmer==1.2.1
|
2018-08-06 12:45:56 -04:00
|
|
|
Sphinx==1.7.5
|
2017-11-08 13:58:00 -05:00
|
|
|
sphinx-rtd-theme==0.2.4
|
2018-08-06 12:45:56 -04:00
|
|
|
sphinxcontrib-websupport==1.0.1
|
2019-12-18 16:21:54 -05:00
|
|
|
texttable==0.9.1
|
2017-11-08 13:58:00 -05:00
|
|
|
tldextract==2.2.0
|
2019-10-21 16:54:17 -04:00
|
|
|
toml==0.10.0
|
2019-09-16 14:14:26 -04:00
|
|
|
tox==3.14.0
|
2017-11-08 13:58:00 -05:00
|
|
|
tqdm==4.19.4
|
2020-01-16 16:47:23 -05:00
|
|
|
traitlets==4.3.3
|
2018-06-07 10:50:36 -04:00
|
|
|
twine==1.11.0
|
2020-11-19 15:48:36 -05:00
|
|
|
typed-ast==1.4.1
|
2018-04-12 18:47:39 -04:00
|
|
|
typing==3.6.4
|
Upgrade to mypy 0.812 (#8748)
Fixes #8425
This PR upgrades mypy to the latest version available, 0.812.
Given the advanced type inference capabilities provided by this newer version, this PRs also fixes various type inconsistencies that are now detected. Here are the non obvious changes done to fix types:
* typing in mixins has been solved using `Protocol` classes, as recommended by mypy (https://mypy.readthedocs.io/en/latest/more_types.html#mixin-classes, https://mypy.readthedocs.io/en/stable/protocols.html)
* `cast` when we are playing with `Union` types
This PR also disables the strict optional checks that have been enable by default in recent versions of mypy. Once this PR is merged, I will create an issue to study how these checks can be enabled.
`typing.Protocol` is available only since Python 3.8. To keep compatibility with Python 3.6, I try to import the class `Protocol` from `typing`, and fallback to assign `object` to `Protocol` if that fails. This way the code is working with all versions of Python, but the mypy check can be run only with Python 3.8+ because it needs the protocol feature. As a consequence, tox runs mypy under Python 3.8.
Alternatives are:
* importing `typing_extensions`, that proposes backport of newest typing features to Python 3.6, but this implies to add a dependency to Certbot just to run mypy
* redesign the concerned classes to not use mixins, or use them differently, but this implies to modify the code itself even if there is nothing wrong with it and it is just a matter of instructing mypy to understand in which context the mixins can be used
* ignoring type for these classes with `# type: ignore` but we loose the benefit of mypy for them
* 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
2021-04-02 14:54:40 -04:00
|
|
|
typing-extensions==3.7.4.3
|
2019-10-21 16:54:17 -04:00
|
|
|
uritemplate==3.0.0
|
2019-08-02 12:47:36 -04:00
|
|
|
virtualenv==16.6.2
|
2020-01-16 16:47:23 -05:00
|
|
|
wcwidth==0.1.8
|
2019-12-18 16:21:54 -05:00
|
|
|
websocket-client==0.56.0
|
Lint certbot code on Python 3, and update Pylint to the latest version (#7551)
Part of #7550
This PR makes appropriate corrections to run pylint on Python 3.
Why not keeping the dependencies unchanged and just run pylint on Python 3?
Because the old version of pylint breaks horribly on Python 3 because of unsupported version of astroid.
Why updating pylint + astroid to the latest version ?
Because this version only fixes some internal errors occuring during the lint of Certbot code, and is also ready to run gracefully on Python 3.8.
Why upgrading mypy ?
Because the old version does not support the new version of astroid required to run pylint correctly.
Why not upgrading mypy to its latest version ?
Because this latest version includes a new typshed version, that adds a lot of new type definitions, and brings dozens of new errors on the Certbot codebase. I would like to fix that in a future PR.
That said so, the work has been to find the correct set of new dependency versions, then configure pylint for sane configuration errors in our situation, disable irrelevant lintings errors, then fixing (or ignoring for good reason) the remaining mypy errors.
I also made PyLint and MyPy checks run correctly on Windows.
* Start configuration
* Reconfigure travis
* Suspend a check specific to python 3. Start fixing code.
* Repair call_args
* Fix return + elif lints
* Reconfigure development to run mainly on python3
* Remove incompatible Python 3.4 jobs
* Suspend pylint in some assertions
* Remove pylint in dev
* Take first mypy that supports typed-ast>=1.4.0 to limit the migration path
* Various return + else lint errors
* Find a set of deps that is working with current mypy version
* Update local oldest requirements
* Remove all current pylint errors
* Rebuild letsencrypt-auto
* Update mypy to fix pylint with new astroid version, and fix mypy issues
* Explain type: ignore
* Reconfigure tox, fix none path
* Simplify pinning
* Remove useless directive
* Remove debugging code
* Remove continue
* Update requirements
* Disable unsubscriptable-object check
* Disable one check, enabling two more
* Plug certbot dev version for oldest requirements
* Remove useless disable directives
* Remove useless no-member disable
* Remove no-else-* checks. Use elif in symetric branches.
* Add back assertion
* Add new line
* Remove unused pylint disable
* Remove other pylint disable
2019-12-10 17:12:50 -05:00
|
|
|
wrapt==1.11.2
|
2019-10-21 16:54:17 -04:00
|
|
|
zipp==0.6.0
|