Skip to content

Commit 8e31f70

Browse files
committed
refactor: logic put in sripts/ and rename gendiff=>diff
1 parent c67f24b commit 8e31f70

File tree

8 files changed

+6
-17
lines changed

8 files changed

+6
-17
lines changed

gendiff/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from gendiff.cli import parse_args
2-
from gendiff.core.gendiff import generate_diff, main
3-
from gendiff.io.utils import read_file
2+
from gendiff.scripts.diff import generate_diff, main
3+
from gendiff.scripts.utils import read_file
44

55
__all__ = [
66
'parse_args',

gendiff/core/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

gendiff/io/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

gendiff/core/gendiff.py renamed to gendiff/scripts/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from gendiff.formatters.json_format import format_output_json
33
from gendiff.formatters.plain import format_output_plain
44
from gendiff.formatters.stylish import format_output_stylish
5-
from gendiff.io.utils import read_file
5+
from gendiff.scripts.utils import read_file
66

77

88
def get_diff(data1, data2) -> list:

gendiff/scripts/gendiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from gendiff.core.gendiff import main
1+
from gendiff.scripts.diff import main
22

33
if __name__ == '__main__':
44
main()
File renamed without changes.

tests/test_gendiff.py renamed to tests/test_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from gendiff.core.gendiff import generate_diff
3+
from gendiff.scripts.diff import generate_diff
44

55
current_dir = os.path.dirname(os.path.abspath(__file__))
66
dir_with_data = os.path.join(current_dir, 'test_data')

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from gendiff.io.utils import read_file
3+
from gendiff.scripts.utils import read_file
44

55
current_dir = os.path.dirname(os.path.abspath(__file__))
66
dir_with_data = os.path.join(current_dir, 'test_data')

0 commit comments

Comments
 (0)