[UPD] script: format and isort
This commit is contained in:
parent
24e5cba22b
commit
83b8792227
22 changed files with 79 additions and 70 deletions
|
|
@ -1,15 +1,16 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from code_writer import CodeWriter
|
||||
|
||||
# import tokenize
|
||||
|
||||
from script.git_tool import GitTool
|
||||
|
||||
# import tokenize
|
||||
|
||||
|
||||
def get_config():
|
||||
"""Parse command line arguments, extracting the config file name,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from xml.dom import Node, minidom
|
||||
|
||||
from code_writer import CodeWriter
|
||||
from xml.dom import minidom, Node
|
||||
|
||||
from script.git_tool import GitTool
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#!./.venv/bin/python
|
||||
import argparse
|
||||
import csv
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import csv
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import configparser
|
||||
import getpass
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from subprocess import check_output
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#!./.venv/bin/python
|
||||
import argparse
|
||||
import logging
|
||||
|
||||
import CloudFlare
|
||||
import requests
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
import yaml
|
||||
|
||||
new_path = os.path.normpath(
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
import os.path
|
||||
import shutil
|
||||
|
||||
import yaml # pip install PyYAML
|
||||
from agithub.GitHub import GitHub # pip install agithub
|
||||
from git import Repo # pip install gitpython
|
||||
from giturlparse import parse # pip install giturlparse
|
||||
from retrying import retry # pip install retrying
|
||||
import yaml # pip install PyYAML
|
||||
|
||||
DEFAULT_CONFIG_FILENAME = "~/.github/fork_github_repo.yaml"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
from git import Repo
|
||||
from retrying import retry # pip install retrying
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
from git import Repo
|
||||
import os
|
||||
import sys
|
||||
|
||||
import git
|
||||
from git import Repo
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
from git import Repo
|
||||
import os
|
||||
import sys
|
||||
|
||||
from git import Repo
|
||||
from retrying import retry # pip install retrying
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
from git import Repo
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#!./.venv/bin/python
|
||||
import argparse
|
||||
import copy
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import copy
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
from git import Repo
|
||||
import os
|
||||
import sys
|
||||
|
||||
import git
|
||||
from git import Repo
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
from colorama import Fore, Style
|
||||
from git import Repo
|
||||
from git.exc import GitCommandError, NoSuchPathError
|
||||
from colorama import Fore
|
||||
from colorama import Style
|
||||
from collections import defaultdict
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
import os
|
||||
import webbrowser
|
||||
from retrying import retry # pip install retrying
|
||||
from agithub.GitHub import GitHub # pip install agithub
|
||||
from giturlparse import parse # pip install giturlparse
|
||||
import xmltodict
|
||||
from collections import OrderedDict
|
||||
|
||||
from git import Repo
|
||||
import git
|
||||
from typing import List
|
||||
|
||||
import git
|
||||
import xmltodict
|
||||
from agithub.GitHub import GitHub # pip install agithub
|
||||
from git import Repo
|
||||
from giturlparse import parse # pip install giturlparse
|
||||
from retrying import retry # pip install retrying
|
||||
|
||||
CST_FILE_SOURCE_REPO_ADDONS = "source_repo_addons.csv"
|
||||
CST_EL_GITHUB_TOKEN = "EL_GITHUB_TOKEN"
|
||||
DEFAULT_PROJECT_NAME = "ERPLibre"
|
||||
|
|
@ -391,11 +391,7 @@ class GitTool:
|
|||
lst_result = []
|
||||
for repo in lst_repo:
|
||||
# Exception, ignore addons/OCA_web and root
|
||||
if (
|
||||
"addons/OCA_web" == repo.get("path")
|
||||
or "odoo" == repo.get("path")
|
||||
or "image_db" == repo.get("path")
|
||||
):
|
||||
if repo.get("path") in ["addons/OCA_web", "odoo", "image_db"]:
|
||||
continue
|
||||
str_repo = (
|
||||
f' printf "${{EL_HOME}}/{repo.get("path")}," >> '
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
from git import Repo # pip install gitpython
|
||||
from retrying import retry # pip install retrying
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
#!./.venv/bin/python
|
||||
import argparse
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import zipfile
|
||||
import json
|
||||
from colorama import Fore
|
||||
from colorama import Style
|
||||
|
||||
from colorama import Fore, Style
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
#!./.venv/bin/python
|
||||
import argparse
|
||||
import ast
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import toml
|
||||
import ast
|
||||
from collections import OrderedDict, defaultdict
|
||||
from pathlib import Path
|
||||
|
||||
import iscompatible
|
||||
import toml
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from git import Repo # pip install gitpython
|
||||
from git.exc import GitCommandError
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
#!./.venv/bin/python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
from colorama import Fore, Style
|
||||
from git import Repo # pip install gitpython
|
||||
from retrying import retry # pip install retrying
|
||||
from colorama import Fore
|
||||
from colorama import Style
|
||||
|
||||
new_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.append(new_path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue