chinus-tools 1.0.9__tar.gz → 1.0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/PKG-INFO +1 -1
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/pyproject.toml +1 -1
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools/__init__.py +0 -2
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools.egg-info/PKG-INFO +1 -1
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools.egg-info/SOURCES.txt +0 -2
- chinus_tools-1.0.9/src/chinus_tools/git/status.py +0 -20
- chinus_tools-1.0.9/src/chinus_tools/print_input_utils/__init__.py +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/README.md +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/setup.cfg +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools/jsons.py +0 -0
- {chinus_tools-1.0.9/src/chinus_tools/git → chinus_tools-1.0.10/src/chinus_tools/paths}/__init__.py +0 -0
- {chinus_tools-1.0.9/src/chinus_tools/paths → chinus_tools-1.0.10/src/chinus_tools/paths/get}/__init__.py +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools/paths/get/absolute_path.py +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools/paths/get/project_root.py +0 -0
- {chinus_tools-1.0.9/src/chinus_tools/paths/get → chinus_tools-1.0.10/src/chinus_tools/print_input_utils}/__init__.py +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools/print_input_utils/multi_line_io.py +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools.egg-info/dependency_links.txt +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools.egg-info/requires.txt +0 -0
- {chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools.egg-info/top_level.txt +0 -0
@@ -2,7 +2,6 @@ from chinus_tools.jsons import dump_json, load_json
|
|
2
2
|
from chinus_tools.paths.get.absolute_path import get_absolute_path
|
3
3
|
from chinus_tools.paths.get.project_root import get_project_root
|
4
4
|
from chinus_tools.print_input_utils.multi_line_io import br_print, br_input
|
5
|
-
from chinus_tools.git.status import has_modified_files
|
6
5
|
|
7
6
|
__all__ = [
|
8
7
|
'dump_json',
|
@@ -11,5 +10,4 @@ __all__ = [
|
|
11
10
|
'get_project_root',
|
12
11
|
'br_print',
|
13
12
|
'br_input',
|
14
|
-
'has_modified_files'
|
15
13
|
]
|
@@ -7,8 +7,6 @@ src/chinus_tools.egg-info/SOURCES.txt
|
|
7
7
|
src/chinus_tools.egg-info/dependency_links.txt
|
8
8
|
src/chinus_tools.egg-info/requires.txt
|
9
9
|
src/chinus_tools.egg-info/top_level.txt
|
10
|
-
src/chinus_tools/git/__init__.py
|
11
|
-
src/chinus_tools/git/status.py
|
12
10
|
src/chinus_tools/paths/__init__.py
|
13
11
|
src/chinus_tools/paths/get/__init__.py
|
14
12
|
src/chinus_tools/paths/get/absolute_path.py
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import subprocess
|
2
|
-
|
3
|
-
|
4
|
-
def has_modified_files() -> bool:
|
5
|
-
"""
|
6
|
-
Git 상태를 확인하여 변경 사항의 존재 유무에 따라 True/False를 반환합니다
|
7
|
-
"""
|
8
|
-
try:
|
9
|
-
# 'git status --porcelain'으로 변경 사항이 있는지 확인
|
10
|
-
result = subprocess.run(['git', 'status', '--porcelain'], capture_output=True, text=True, check=True)
|
11
|
-
# 출력 결과가 있으면 True (변경 사항 있음), 없으면 False (변경 사항 없음)
|
12
|
-
return bool(result.stdout.strip())
|
13
|
-
except subprocess.CalledProcessError as e:
|
14
|
-
# Git 명령 실행 실패 시 예외 처리
|
15
|
-
print(f"Git 명령 실행 중 오류 발생: {e}")
|
16
|
-
return False
|
17
|
-
except FileNotFoundError:
|
18
|
-
# Git 명령이 없는 경우 예외 처리
|
19
|
-
print("Git이 설치되어 있지 않거나 경로에 없습니다.")
|
20
|
-
return False
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{chinus_tools-1.0.9/src/chinus_tools/git → chinus_tools-1.0.10/src/chinus_tools/paths}/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{chinus_tools-1.0.9 → chinus_tools-1.0.10}/src/chinus_tools/print_input_utils/multi_line_io.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|