Skip to content

Commit a7c0085

Browse files
committed
Organize imports
1 parent 0ceeabe commit a7c0085

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

eburger/main.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
roughly_check_valid_file_path_name,
1414
select_project,
1515
)
16-
from eburger.utils.helpers import (
17-
get_eburger_version,
18-
)
16+
from eburger.utils.helpers import get_eburger_version
1917
from eburger.utils.installers import (
2018
install_foundry_if_not_found,
2119
install_hardhat_if_not_found,
@@ -27,7 +25,6 @@
2725
save_as_json,
2826
save_as_markdown,
2927
save_as_sarif,
30-
save_as_json,
3128
)
3229
from eburger.yaml_parser import process_files_concurrently
3330

eburger/utils/compilers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import json
22
import os
3-
from pathlib import Path
43
import shutil
54
import sys
5+
from pathlib import Path
66

77
from eburger import settings
88
from eburger.serializer import reduce_json
9+
from eburger.utils.cli_args import args
910
from eburger.utils.filesystem import (
1011
create_or_empty_directory,
1112
find_and_read_sol_file,
@@ -24,7 +25,6 @@
2425
set_solc_compiler_version,
2526
)
2627
from eburger.utils.logger import log
27-
from eburger.utils.cli_args import args
2828

2929

3030
def compile_solc(path_type: str) -> tuple[Path, dict, str, list, dict]:

eburger/utils/filesystem.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import fnmatch
22
import json
33
import os
4-
from pathlib import Path
54
import re
65
import shutil
6+
from pathlib import Path
7+
78
from eburger import settings
8-
from eburger.utils.logger import log
99
from eburger.utils.cli_args import args
10+
from eburger.utils.logger import log
1011

1112

1213
def find_and_read_sol_file(folder_path: str) -> str:

eburger/utils/installers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import os
22
import sys
3+
34
from eburger import settings
5+
from eburger.utils.cli_args import args
46
from eburger.utils.helpers import python_shell_source, run_command
57
from eburger.utils.logger import log
6-
from eburger.utils.cli_args import args
78

89

910
def check_if_skip_installations_requested(missing_dependency: str):

eburger/utils/outputs.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Silence tool prints
22
import copy
3-
from datetime import datetime
43
import json
54
import os
6-
from pathlib import Path
75
import sys
8-
from prettytable import PrettyTable, MARKDOWN
9-
from pygount import ProjectSummary, SourceAnalysis
6+
from datetime import datetime
7+
from pathlib import Path
108

119
from eburger import settings
1210
from eburger.utils.cli_args import args
1311
from eburger.utils.logger import log
12+
from prettytable import MARKDOWN, PrettyTable
13+
from pygount import ProjectSummary, SourceAnalysis
1414

1515

1616
def save_as_json(file_path: Path, json_data: dict):

0 commit comments

Comments
 (0)