Skip to content

Commit

Permalink
Organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
forefy committed Mar 12, 2024
1 parent 0ceeabe commit a7c0085
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
5 changes: 1 addition & 4 deletions eburger/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
roughly_check_valid_file_path_name,
select_project,
)
from eburger.utils.helpers import (
get_eburger_version,
)
from eburger.utils.helpers import get_eburger_version
from eburger.utils.installers import (
install_foundry_if_not_found,
install_hardhat_if_not_found,
Expand All @@ -27,7 +25,6 @@
save_as_json,
save_as_markdown,
save_as_sarif,
save_as_json,
)
from eburger.yaml_parser import process_files_concurrently

Expand Down
4 changes: 2 additions & 2 deletions eburger/utils/compilers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import json
import os
from pathlib import Path
import shutil
import sys
from pathlib import Path

from eburger import settings
from eburger.serializer import reduce_json
from eburger.utils.cli_args import args
from eburger.utils.filesystem import (
create_or_empty_directory,
find_and_read_sol_file,
Expand All @@ -24,7 +25,6 @@
set_solc_compiler_version,
)
from eburger.utils.logger import log
from eburger.utils.cli_args import args


def compile_solc(path_type: str) -> tuple[Path, dict, str, list, dict]:
Expand Down
5 changes: 3 additions & 2 deletions eburger/utils/filesystem.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import fnmatch
import json
import os
from pathlib import Path
import re
import shutil
from pathlib import Path

from eburger import settings
from eburger.utils.logger import log
from eburger.utils.cli_args import args
from eburger.utils.logger import log


def find_and_read_sol_file(folder_path: str) -> str:
Expand Down
3 changes: 2 additions & 1 deletion eburger/utils/installers.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
import sys

from eburger import settings
from eburger.utils.cli_args import args
from eburger.utils.helpers import python_shell_source, run_command
from eburger.utils.logger import log
from eburger.utils.cli_args import args


def check_if_skip_installations_requested(missing_dependency: str):
Expand Down
8 changes: 4 additions & 4 deletions eburger/utils/outputs.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Silence tool prints
import copy
from datetime import datetime
import json
import os
from pathlib import Path
import sys
from prettytable import PrettyTable, MARKDOWN
from pygount import ProjectSummary, SourceAnalysis
from datetime import datetime
from pathlib import Path

from eburger import settings
from eburger.utils.cli_args import args
from eburger.utils.logger import log
from prettytable import MARKDOWN, PrettyTable
from pygount import ProjectSummary, SourceAnalysis


def save_as_json(file_path: Path, json_data: dict):
Expand Down

0 comments on commit a7c0085

Please sign in to comment.