Brad Warren
1bb09da270
Update and run isort ( #9573 )
...
I want to use isort as part of https://github.com/certbot/certbot/issues/9572 because I want to do it programmatically, however, I felt like the config needed to be tweaked a bit due to it not understanding what is and is not our own code.
This PR updates the isort config so it recognizes our own modules and runs `isort .` from the root of the repo to update everything.
* update isort config
* run "isort ."
2023-02-10 10:51:20 -08:00
Adrien Ferrand
16aad35d31
Fully type certbot-nginx module ( #9124 )
...
* Work in progress
* Fix type
* Work in progress
* Work in progress
* Work in progress
* Work in progress
* Work in progress
* Oups.
* Fix typing in UnspacedList
* Fix logic
* Finish typing
* List certbot-nginx as fully typed in tox
* Fix lint
* Fix checks
* Organize imports
* Fix typing for Python 3.6
* Fix checks
* Fix lint
* Update certbot-nginx/certbot_nginx/_internal/configurator.py
Co-authored-by: alexzorin <alex@zor.io >
* Update certbot-nginx/certbot_nginx/_internal/configurator.py
Co-authored-by: alexzorin <alex@zor.io >
* Fix signature of deploy_cert regarding the installer interface
* Update certbot-nginx/certbot_nginx/_internal/obj.py
Co-authored-by: alexzorin <alex@zor.io >
* Fix types
* Update certbot-nginx/certbot_nginx/_internal/parser.py
Co-authored-by: alexzorin <alex@zor.io >
* Precise type
* Precise _coerce possible inputs/outputs
* Fix type
* Update certbot-nginx/certbot_nginx/_internal/http_01.py
Co-authored-by: ohemorange <ebportnoy@gmail.com >
* Fix type
* Remove an undesirable implementation.
* Fix type
Co-authored-by: alexzorin <alex@zor.io >
Co-authored-by: ohemorange <ebportnoy@gmail.com >
2022-01-12 16:36:51 -08:00
Adrien Ferrand
10eecf9c97
Deprecate zope.component in favor of an direct calls to functions from certbot.display.util
module ( #8835 )
...
* Implement certbot services
* Various fixes
* Local oldest requirements
* Clean imports
* Add unit tests for certbot.services
* Clean code
* Protect against nullity of global services
* Fix CLI
* Fix tests
* Consistent test behavior
* Various fixes
* Clean code
* Remove reporter service, migrate display service in certbot.display.util.
* Fix test
* Fix apache compatibility test
* Fix oldest test
* Setup certbot.display.service module
* Reintegrate in util
* Fix imports
* Fix tests and documentation
* Refactor
* Cleanup
* Cleanup
* Clean imports
* Add unit tests
* Borrow sphinx build fix from #8863
* Fix type
* Add comment
* Do not reuse existing display service, which never exist at that time
* Make get_display() private
* Fix lint
* Make display internal
* Fix circular dependencies
* Fixing circular dependencies
* Rename patch methods and update docstring
* Update deprecation messages
* Update certbot/certbot/_internal/display/obj.py
Co-authored-by: Brad Warren <bmw@users.noreply.github.com >
* Update certbot/certbot/tests/util.py
Co-authored-by: Brad Warren <bmw@users.noreply.github.com >
* Update certbot/certbot/tests/util.py
Co-authored-by: Brad Warren <bmw@users.noreply.github.com >
* Update certbot/certbot/tests/util.py
Co-authored-by: Brad Warren <bmw@users.noreply.github.com >
* Update certbot/certbot/tests/util.py
Co-authored-by: Brad Warren <bmw@users.noreply.github.com >
* Add links
* Avoid relying on internal certbot packages from certbot-apache
* Keep same behavior for patch_get_utility*
* Better diff
* Add changelog
* Update certbot/certbot/tests/util.py
Co-authored-by: Brad Warren <bmw@users.noreply.github.com >
Co-authored-by: Brad Warren <bmw@users.noreply.github.com >
2021-07-19 17:09:06 -07:00
Karan Suthar
8e4dc0a48c
Minor bugfixes ( #7891 )
...
* Fix dangerous default argument
* Remove unused imports
* Remove unnecessary comprehension
* Use literal syntax to create data structure
* Use literal syntax instead of function calls to create data structure
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2020-04-13 10:41:39 -07:00
Adrien Ferrand
e048da1e38
Reorganize imports ( #7616 )
...
* Isort execution
* Fix pylint, adapt coverage
* New isort
* Fix magic_typing lint
* Second round
* Fix pylint
* Third round. Store isort configuration
* Fix latest mistakes
* Other fixes
* Add newline
* Fix lint errors
2019-12-09 15:50:20 -05:00
ohemorange
e023f889ff
Make the contents of the nginx plugin private ( #7589 )
...
Part of #5775 .
* Create _internal folder certbot-nginx
* Move configurator.py to _internal
* Move constants.py to _internal
* Move display_ops.py to _internal
* Move http_01.py to _internal
* Move nginxparser.py to _internal
* Move obj.py to _internal
* Move parser_obj.py to _internal
* Move parser.py to _internal
* Update location and references for tls_configs
* exclude parser_obj from coverage
2019-11-25 14:30:24 -08:00