mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 14:21:05 +00:00
chore(lint): Run isort
This commit is contained in:
parent
f8b7b7af05
commit
8b4dfce4f0
@ -1,9 +1,8 @@
|
|||||||
#!/home/frappe/frappe-bench/env/bin/python
|
#!/home/frappe/frappe-bench/env/bin/python
|
||||||
|
|
||||||
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
bench_dir = os.path.join(os.sep, "home", "frappe", "frappe-bench")
|
bench_dir = os.path.join(os.sep, "home", "frappe", "frappe-bench")
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import os
|
import os
|
||||||
import semantic_version
|
|
||||||
import git
|
|
||||||
|
|
||||||
|
import git
|
||||||
|
import semantic_version
|
||||||
from migrate import migrate_sites
|
from migrate import migrate_sites
|
||||||
from utils import (
|
from utils import (
|
||||||
save_version_file,
|
|
||||||
get_apps,
|
get_apps,
|
||||||
|
get_config,
|
||||||
get_container_versions,
|
get_container_versions,
|
||||||
get_version_file,
|
get_version_file,
|
||||||
get_config,
|
save_version_file,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from frappe.utils.backups import scheduled_backup
|
|
||||||
from frappe.utils import cint, get_sites, now
|
from frappe.utils import cint, get_sites, now
|
||||||
|
from frappe.utils.backups import scheduled_backup
|
||||||
|
|
||||||
|
|
||||||
def backup(sites, with_files=False):
|
def backup(sites, with_files=False):
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from constants import (
|
||||||
|
DB_HOST_KEY,
|
||||||
|
DB_PORT,
|
||||||
|
DB_PORT_KEY,
|
||||||
|
REDIS_CACHE_KEY,
|
||||||
|
REDIS_QUEUE_KEY,
|
||||||
|
REDIS_SOCKETIO_KEY,
|
||||||
|
)
|
||||||
from six.moves.urllib.parse import urlparse
|
from six.moves.urllib.parse import urlparse
|
||||||
from utils import get_config
|
from utils import get_config
|
||||||
from constants import (
|
|
||||||
REDIS_QUEUE_KEY,
|
|
||||||
REDIS_CACHE_KEY,
|
|
||||||
REDIS_SOCKETIO_KEY,
|
|
||||||
DB_HOST_KEY,
|
|
||||||
DB_PORT_KEY,
|
|
||||||
DB_PORT,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def is_open(ip, port, timeout=30):
|
def is_open(ip, port, timeout=30):
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from check_connection import (
|
from check_connection import (
|
||||||
check_service,
|
|
||||||
check_redis_cache,
|
check_redis_cache,
|
||||||
check_redis_queue,
|
check_redis_queue,
|
||||||
check_redis_socketio,
|
check_redis_socketio,
|
||||||
|
check_service,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import frappe
|
|
||||||
|
|
||||||
|
import frappe
|
||||||
from frappe.utils import cint, get_sites
|
from frappe.utils import cint, get_sites
|
||||||
from utils import get_config, save_config
|
from utils import get_config, save_config
|
||||||
|
|
||||||
|
@ -1,15 +1,10 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
import semantic_version
|
import semantic_version
|
||||||
|
|
||||||
from frappe.installer import update_site_config
|
|
||||||
from constants import COMMON_SITE_CONFIG_FILE, RDS_DB, RDS_PRIVILEGES
|
from constants import COMMON_SITE_CONFIG_FILE, RDS_DB, RDS_PRIVILEGES
|
||||||
from utils import (
|
from frappe.installer import update_site_config
|
||||||
run_command,
|
from utils import get_config, get_password, get_site_config, run_command
|
||||||
get_config,
|
|
||||||
get_site_config,
|
|
||||||
get_password,
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to import _new_site from frappe, which could possibly
|
# try to import _new_site from frappe, which could possibly
|
||||||
# exist in either commands.py or installer.py, and so we need
|
# exist in either commands.py or installer.py, and so we need
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
|
import datetime
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import boto3
|
|
||||||
|
|
||||||
import datetime
|
|
||||||
from glob import glob
|
from glob import glob
|
||||||
from frappe.utils import get_sites
|
|
||||||
|
import boto3
|
||||||
from constants import DATE_FORMAT
|
from constants import DATE_FORMAT
|
||||||
from utils import (
|
from frappe.utils import get_sites
|
||||||
get_s3_config,
|
from utils import check_s3_environment_variables, get_s3_config, upload_file_to_s3
|
||||||
upload_file_to_s3,
|
|
||||||
check_s3_environment_variables,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def get_file_ext():
|
def get_file_ext():
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
import os
|
|
||||||
import datetime
|
import datetime
|
||||||
import tarfile
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import frappe
|
import os
|
||||||
import boto3
|
import tarfile
|
||||||
|
|
||||||
from frappe.utils import get_sites, random_string
|
import boto3
|
||||||
|
import frappe
|
||||||
|
from constants import COMMON_SITE_CONFIG_FILE, DATE_FORMAT, RDS_DB, RDS_PRIVILEGES
|
||||||
from frappe.installer import (
|
from frappe.installer import (
|
||||||
make_conf,
|
|
||||||
get_conf_params,
|
get_conf_params,
|
||||||
|
make_conf,
|
||||||
make_site_dirs,
|
make_site_dirs,
|
||||||
update_site_config,
|
update_site_config,
|
||||||
)
|
)
|
||||||
from constants import COMMON_SITE_CONFIG_FILE, DATE_FORMAT, RDS_DB, RDS_PRIVILEGES
|
from frappe.utils import get_sites, random_string
|
||||||
from utils import (
|
from utils import (
|
||||||
run_command,
|
check_s3_environment_variables,
|
||||||
list_directories,
|
|
||||||
set_key_in_site_config,
|
|
||||||
get_site_config,
|
|
||||||
get_config,
|
get_config,
|
||||||
get_password,
|
get_password,
|
||||||
check_s3_environment_variables,
|
get_site_config,
|
||||||
|
list_directories,
|
||||||
|
run_command,
|
||||||
|
set_key_in_site_config,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
import git
|
import git
|
||||||
|
|
||||||
from frappe.installer import update_site_config
|
|
||||||
from constants import APP_VERSIONS_JSON_FILE, APPS_TXT_FILE, COMMON_SITE_CONFIG_FILE
|
from constants import APP_VERSIONS_JSON_FILE, APPS_TXT_FILE, COMMON_SITE_CONFIG_FILE
|
||||||
|
from frappe.installer import update_site_config
|
||||||
|
|
||||||
|
|
||||||
def run_command(command, stdout=None, stdin=None, stderr=None):
|
def run_command(command, stdout=None, stdin=None, stderr=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user