@gnost-cli/windows-x64 0.5.1 → 0.5.2-rc.2

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.
@@ -1,6 +1,6 @@
1
- ../../Scripts/bandit-baseline.exe,sha256=fdynzvm5i0-Ui9hZccoc0ggjbEmPcQbgPRoYH0mIKC8,108358
2
- ../../Scripts/bandit-config-generator.exe,sha256=QcQR9mTNJKChfowz7DSkDive2eaJkiVi0ta1N8oewsI,108366
3
- ../../Scripts/bandit.exe,sha256=NOIYYugSQj8SHn7WaEkYhkUlZpjAhloVijYeCU1RHgM,108354
1
+ ../../Scripts/bandit-baseline.exe,sha256=XCGZqDJvbz7ZG0FipjMLErcQ-QsKTGhhOnW9Vc5BHz8,108358
2
+ ../../Scripts/bandit-config-generator.exe,sha256=udr1OYQiqityQXp4QMcDuNyJEBv01KXoLzJbh5wMH8U,108366
3
+ ../../Scripts/bandit.exe,sha256=rmCoiYIzkWqG7Ub2SsgCEVOyG7WM0FmSW54qMD4V5Y8,108354
4
4
  ../../share/man/man1/bandit.1,sha256=k1copRknkrnXzOyOAvdvC6iwl-QAYUG1HOWRsAtkdWI,6545
5
5
  bandit-1.9.4.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
6
6
  bandit-1.9.4.dist-info/METADATA,sha256=pc_7769UxRQY4Zz1dl3tSa8gsnoluOtEDyHZ21DJzpo,7101
Binary file
@@ -1 +1 @@
1
- __version__ = "0.5.1"
1
+ __version__ = "0.5.2rc2"
@@ -104,9 +104,11 @@ def _risk_to_score(risk_score: float) -> float:
104
104
 
105
105
 
106
106
  def _resolve_repo_root(path: str) -> str:
107
+ """Nearest parent with .git or pyproject.toml; the project folder if none."""
107
108
  current = os.path.abspath(path)
108
109
  if os.path.isfile(current):
109
110
  current = os.path.dirname(current)
111
+ start = current
110
112
 
111
113
  while True:
112
114
  if os.path.isdir(os.path.join(current, ".git")) or os.path.isfile(
@@ -116,7 +118,7 @@ def _resolve_repo_root(path: str) -> str:
116
118
 
117
119
  parent = os.path.dirname(current)
118
120
  if parent == current:
119
- return current
121
+ return start
120
122
  current = parent
121
123
 
122
124
 
@@ -1,3 +1,4 @@
1
+ import threading
1
2
  from contextlib import contextmanager
2
3
 
3
4
 
@@ -6,6 +7,20 @@ try:
6
7
  except Exception:
7
8
  tqdm = None
8
9
 
10
+ _lock_ready = False
11
+
12
+
13
+ def _use_thread_lock() -> None:
14
+ """Keep tqdm from creating a multiprocessing lock.
15
+
16
+ That lock starts Python's resource tracker, which relaunches sys.executable.
17
+ In the standalone binary that is gnost itself, and it fails on the arguments.
18
+ """
19
+ global _lock_ready
20
+ if not _lock_ready:
21
+ tqdm.set_lock(threading.RLock())
22
+ _lock_ready = True
23
+
9
24
 
10
25
  @contextmanager
11
26
  def progress_bar(enabled=False, total=None, desc=None):
@@ -13,6 +28,7 @@ def progress_bar(enabled=False, total=None, desc=None):
13
28
  yield None
14
29
  return
15
30
 
31
+ _use_thread_lock()
16
32
  bar = tqdm(total=total, desc=desc)
17
33
  try:
18
34
  yield bar
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gnost
3
- Version: 0.5.1
3
+ Version: 0.5.2rc2
4
4
  Summary: GNOST — Codebase Knowledge
5
5
  Author-email: Mohd Zain <zainmohd1998@gmail.com>
6
6
  License: MIT License
@@ -1,14 +1,14 @@
1
- ../../Scripts/gnost.exe,sha256=rdkD46K7o-qxw0iYSnUvFYkyZAfATRtR-gLoSQpEC38,108348
2
- gnost-0.5.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
- gnost-0.5.1.dist-info/METADATA,sha256=KCHKBOKuR7c0KfV8Y5UjcJ66TUMBpnNUbMbJdm0biFY,5683
4
- gnost-0.5.1.dist-info/RECORD,,
5
- gnost-0.5.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- gnost-0.5.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
7
- gnost-0.5.1.dist-info/direct_url.json,sha256=2zy-IZI8qKbzgSrSTTyh5GNQW7I8_xtJVwcTbvPzzkY,51
8
- gnost-0.5.1.dist-info/entry_points.txt,sha256=6hH5dxCq1FF8sPT7gTwZ3xLBZr8UxCLTa7I6DpLvLSA,41
9
- gnost-0.5.1.dist-info/licenses/LICENSE,sha256=Wzl3x-OMbit9QBzRb3j8D4tP1ff25FCrjyjSF1VeJV8,1087
10
- gnost-0.5.1.dist-info/top_level.txt,sha256=UExzNRqfi7WIWspHyv4lAZqhY9y4n46VRkVcZE5ael4,6
11
- gnost/__init__.py,sha256=qSmox37Y9AVma7EF6squiwj6SeCYoAOKJyA2gwoJKMI,23
1
+ ../../Scripts/gnost.exe,sha256=zS5t334M01RoZfDk2xh8bneAO5sSDUEARDzCENcFf1g,108348
2
+ gnost-0.5.2rc2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
+ gnost-0.5.2rc2.dist-info/METADATA,sha256=vkn26G8pUujb39VgEn5mtkoUA6ac4IsbK3P1GqRa10o,5686
4
+ gnost-0.5.2rc2.dist-info/RECORD,,
5
+ gnost-0.5.2rc2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ gnost-0.5.2rc2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
7
+ gnost-0.5.2rc2.dist-info/direct_url.json,sha256=2zy-IZI8qKbzgSrSTTyh5GNQW7I8_xtJVwcTbvPzzkY,51
8
+ gnost-0.5.2rc2.dist-info/entry_points.txt,sha256=6hH5dxCq1FF8sPT7gTwZ3xLBZr8UxCLTa7I6DpLvLSA,41
9
+ gnost-0.5.2rc2.dist-info/licenses/LICENSE,sha256=Wzl3x-OMbit9QBzRb3j8D4tP1ff25FCrjyjSF1VeJV8,1087
10
+ gnost-0.5.2rc2.dist-info/top_level.txt,sha256=UExzNRqfi7WIWspHyv4lAZqhY9y4n46VRkVcZE5ael4,6
11
+ gnost/__init__.py,sha256=rpnOq1yheqkmgHo6HBS1w1ZRTAghbZCG1gU24E8sohI,26
12
12
  gnost/__pycache__/__init__.cpython-312.pyc,,
13
13
  gnost/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  gnost/analysis/__pycache__/__init__.cpython-312.pyc,,
@@ -56,7 +56,7 @@ gnost/analysis/utils/tool_command.py,sha256=QY8s4JONjIVL2S9Oj3VfpzsMs9cjrc43lywS
56
56
  gnost/cli/__init__.py,sha256=Y5guzpl6jBh3fsZYfC3LeqbJr0dg7EDZf5grMwGeyz8,54
57
57
  gnost/cli/__pycache__/__init__.cpython-312.pyc,,
58
58
  gnost/cli/__pycache__/app.cpython-312.pyc,,
59
- gnost/cli/app.py,sha256=WCegG0ALcJV3lf9RljVvyakBKy1U8H7S8pWQatuHMck,25394
59
+ gnost/cli/app.py,sha256=-haRHWUne-tcMeFLK84cBgdufyR5q_Qnzv8gX4Si8hw,25496
60
60
  gnost/cli/commands/__init__.py,sha256=tERi6X7C1QqAi6HQsBaMqNIo3hTsqvQsD1d9WCfVG7o,80
61
61
  gnost/cli/commands/__pycache__/__init__.cpython-312.pyc,,
62
62
  gnost/cli/commands/__pycache__/analysis.cpython-312.pyc,,
@@ -175,4 +175,4 @@ gnost/utils/__pycache__/progress.cpython-312.pyc,,
175
175
  gnost/utils/logger.py,sha256=bLlDtCZO6l8bETY5O5BhwbdHDcc1MkBpGvi-VXezeLw,3192
176
176
  gnost/utils/paths.py,sha256=_WAoakdkd3aVxriRHILuQE5d7su34YPv4bNU7AoSwKs,926
177
177
  gnost/utils/printer.py,sha256=nEsQfUUA-A3AMY9Zb4LQSw1Ct2AYL1fWBTxqfhDdUD0,1215
178
- gnost/utils/progress.py,sha256=bh0xsFT9pR4zQDHL8axv-ln6D3f-N7W6sTIng4b7yp8,369
178
+ gnost/utils/progress.py,sha256=cBJSHXGP9bKm3pJIoD5iBN8PnPC1OguvU_m0YzIhe9U,822
@@ -1,8 +1,8 @@
1
- ../../Scripts/dmypy.exe,sha256=hZSeXKzemeBED6FjKFHwJUFpZEV1vWkThrDyx1uID64,108374
2
- ../../Scripts/mypy.exe,sha256=qTZjonGEmvKzRP-WMSQSLV7asZ7OP85Ary52503_pvE,108370
3
- ../../Scripts/mypyc.exe,sha256=v1DZ2TNqDHBzfVektkhqG2eM9VbKE2o4Avk_UNKsw0A,108353
4
- ../../Scripts/stubgen.exe,sha256=8sW4RtTs8LdUdUGwAkRrMEpgBtjIKtLnKm7dbpQCLIo,108351
5
- ../../Scripts/stubtest.exe,sha256=k7f5qL-fu_5sc0eWnm3D9FUuM3qV1cOkJVnZ8iFZaQQ,108352
1
+ ../../Scripts/dmypy.exe,sha256=oL533RRn13rMwXrbsVh9oXsFSLqzi7_IzQtUxspreiU,108374
2
+ ../../Scripts/mypy.exe,sha256=caNOpB2GAUll5DsT-arVQvYGs655mPPIHrPax1z8HD8,108370
3
+ ../../Scripts/mypyc.exe,sha256=8FeyFBY_OiEoTw5nsMZ55Fx72jY7-MaWqx8wDXDGCHM,108353
4
+ ../../Scripts/stubgen.exe,sha256=qyQ9x9g-_vpyTxknkmEurfo2KUhiCDXHzRv5rfuufp8,108351
5
+ ../../Scripts/stubtest.exe,sha256=-ZuS8CeCFPFDRo4BZBxD037XmKtgNxHCai-BFliGWMg,108352
6
6
  6ec57f84c680d3a3778b__mypyc.cp312-win_amd64.pyd,sha256=khD0xk3p8OJ4SUmuzsWQfGp9B5-I3hBceNWCwIEw6Rg,20236288
7
7
  mypy-2.4.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
8
8
  mypy-2.4.1.dist-info/METADATA,sha256=psdp4YtsyHveD8v-z2uq5QA4o7CW95eLvOKdg9opvLU,2430
@@ -1,4 +1,4 @@
1
- ../../Scripts/radon.exe,sha256=owxH_r5PrhaL5kX_e2JKRKj5dgJLT2whutoB74B7U60,108344
1
+ ../../Scripts/radon.exe,sha256=hV7s31QqYIiQ2m1w8-V9rSUy1_FrshYclwXFs3AiSsI,108344
2
2
  radon-6.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
3
  radon-6.0.1.dist-info/LICENSE,sha256=AnDgq1j4-FOF9tv_7QLGRl-KMZWv7WBRSQGUQiM3Nu0,1064
4
4
  radon-6.0.1.dist-info/METADATA,sha256=7WR7fzZ8YKLX_Qio_zyqlaCmuJO6zBZNV0YzY2R56JA,8221
@@ -1,4 +1,4 @@
1
- ../../Scripts/tqdm.exe,sha256=EfX10rx1gOs0GpZV_34fdtPy7NncYDgJPappMtNMyNs,108347
1
+ ../../Scripts/tqdm.exe,sha256=_OSlUnizm2bJOrwfskNvxjQ3kT7dxAiRiS5_PI0TUts,108347
2
2
  tqdm-4.70.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
3
  tqdm-4.70.1.dist-info/METADATA,sha256=pdpwuWav6jp1lxYEG61xh_Ls4CwiNIz558ClErvxX1c,57366
4
4
  tqdm-4.70.1.dist-info/RECORD,,
package/bundle/gnost.exe CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnost-cli/windows-x64",
3
- "version": "0.5.1",
3
+ "version": "0.5.2-rc.2",
4
4
  "description": "Internal binary for gnost-cli. Do not install directly.",
5
5
  "license": "MIT",
6
6
  "os": [