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
This commit is contained in:
Adrien Ferrand
2019-12-09 15:50:20 -05:00
committed by ohemorange
parent 34b568f366
commit e048da1e38
222 changed files with 573 additions and 575 deletions
+4 -4
View File
@@ -12,13 +12,13 @@ VENV_NAME.
from __future__ import print_function
import os
import shutil
import glob
import time
import os
import re
import shutil
import subprocess
import sys
import re
import time
REQUIREMENTS = [
'-e acme[dev]',
+1 -1
View File
@@ -16,8 +16,8 @@ import os
import sys
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa
import josepy as jose
from acme import client as acme_client
+2 -2
View File
@@ -1,9 +1,9 @@
#!/usr/bin/env python
from __future__ import print_function
import sys
import os
import re
import sys
CERTBOT_ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
+2 -2
View File
@@ -8,9 +8,9 @@
from __future__ import print_function
import os
import sys
import subprocess
import re
import subprocess
import sys
SKIP_PROJECTS_ON_WINDOWS = ['certbot-apache', 'letshelp-certbot']
+4 -3
View File
@@ -8,13 +8,14 @@
# CERTBOT_OLDEST is set, this script must be run with `-e <package-name>` and
# no other arguments.
from __future__ import print_function, absolute_import
from __future__ import absolute_import
from __future__ import print_function
import subprocess
import os
import sys
import re
import shutil
import subprocess
import sys
import tempfile
import merge_requirements as merge_module
+1
View File
@@ -8,6 +8,7 @@ import sys
import pip_install
def main(args):
new_args = []
for arg in args:
+1
View File
@@ -11,6 +11,7 @@ from __future__ import print_function
import os
import sys
def main(link):
return os.path.realpath(link)
+1
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env python
"""A version of Python's SimpleHTTPServer that flushes its output."""
import sys
try:
from http.server import HTTPServer, SimpleHTTPRequestHandler
except ImportError:
+1
View File
@@ -5,6 +5,7 @@ import sys
import _venv_common
def create_venv(venv_path):
"""Create a Python 2 virtual environment at venv_path.