ai-cr 3.0.0__py3-none-any.whl → 3.1.0__py3-none-any.whl

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
1
  Metadata-Version: 2.3
2
2
  Name: ai-cr
3
- Version: 3.0.0
3
+ Version: 3.1.0
4
4
  Summary: AI code review tool that works with any language model provider. It detects issues in GitHub pull requests or local changes—instantly, reliably, and without vendor lock-in.
5
5
  License: MIT
6
6
  Keywords: static code analysis,code review,code quality,ai,coding,assistant,llm,github,automation,devops,developer tools,github actions,workflows,git
@@ -1,7 +1,7 @@
1
1
  gito/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  gito/__main__.py,sha256=MSmt_5Xg84uHqzTN38JwgseJK8rsJn_11A8WD99VtEo,61
3
- gito/bootstrap.py,sha256=9MCV80dMs8QFaB0tmuSlrpPbnRu2ACPHAWKnOSQV-xI,3168
4
- gito/cli.py,sha256=H6LpoUfw-R4BdJcG4WGcktaIlq2C1kgKWIZ7IEwFljI,6808
3
+ gito/bootstrap.py,sha256=m8g7e4sacTe7SsRKmDms1_L2ESF8TAas1lMaH3hvrl8,3218
4
+ gito/cli.py,sha256=BSLbE2Nbe5-HNCcjXJZrFhgTpUhOhbmlO7g-gFSNoBA,6817
5
5
  gito/cli_base.py,sha256=h0CvkfOaIYGArqNuKyAuDcJDx-hOB7H7uyfJV3afINg,2390
6
6
  gito/commands/__init__.py,sha256=B2uUQsLMEsHfNT1N3lWYm38WSuQIHFmjiGs2tdBuDBA,55
7
7
  gito/commands/deploy.py,sha256=PbNcw7Ccau2Bncpi121YDRz9gg9xvkrviytrAEFfpmw,3749
@@ -10,11 +10,12 @@ gito/commands/gh_post_review_comment.py,sha256=xrCauuifrUEufBjx43sw5FMtWP9seHiGY
10
10
  gito/commands/gh_react_to_comment.py,sha256=3R0Ke-Met06epooImI6ZC2TuLQ2Qpv276OWMSelVcNY,6395
11
11
  gito/commands/linear_comment.py,sha256=8kCudz0cogWm8LsgLRWN-BybDq13zEqwV456JB3_7xo,1411
12
12
  gito/commands/repl.py,sha256=jJCRO-O7r_fFXZrk9f1_oAcYPOAwPi3cGI3bMoRyer8,549
13
+ gito/commands/version.py,sha256=u3khraY95jpIoIo-ndBxXYIEvSy_uyCmiHicAXk-V28,188
13
14
  gito/config.toml,sha256=kd2fbztnr2LGaNE2BE81yt1Ed0PTF5xe_8WtTgDxxkw,18417
14
- gito/constants.py,sha256=_G40SAMfuYjYsBzEVUIxKT8Vo0dAWIQqCWWxdaBAltY,766
15
+ gito/constants.py,sha256=1ElhE4RH0EPEq3xlhwyYRUcgr38X8wXduos0gV9yPy8,819
15
16
  gito/context.py,sha256=OBfcQOREsNx8WHANsplNrnrKYrXz1PyZyne11lSfZjw,446
16
- gito/core.py,sha256=Huz0WnnuuojwFWKD_zPLIjB6wzcoGw3r7a4zzDiQLBI,14484
17
- gito/env.py,sha256=HWNQb2q1mzyTg6w1FmDIxUheNSuoIUEsIEPiC1SYaYY,61
17
+ gito/core.py,sha256=dRPDvfJfQnHV3aequ0L9ayMvUdT1seUKFEis9YSYwDA,14505
18
+ gito/env.py,sha256=TVNxqrnLefqfZt5sSg495p8UenSgHaMgTImK1rRMIlY,146
18
19
  gito/gh_api.py,sha256=FbJ7w6dtuAFUVbZNyNHn8RRDGBvJyQlrIX82m46cTac,2958
19
20
  gito/issue_trackers.py,sha256=XYspyaIuf0ANQSvDUea5_oOdo9tQvpZZsapI5S9g78U,1551
20
21
  gito/pipeline.py,sha256=H6eiyDHUg_p3jxNVhSnyB7EVVNbMIZkA35WMymgPnh0,2610
@@ -29,8 +30,8 @@ gito/tpl/github_workflows/gito-code-review.yml.j2,sha256=PcxXMTblWX2ANK-8bkxFPI3
29
30
  gito/tpl/github_workflows/gito-react-to-comments.yml.j2,sha256=zVNkJRgje75AejXAePZugruDu3pOuDaPcujrDfth8K4,2165
30
31
  gito/tpl/release_notes.j2,sha256=20QtQwdZYcFEjmfYxTysenY-njTPl2nmHpv9077WFdg,849
31
32
  gito/utils.py,sha256=OSBn7IeWKjoLJoGOcdgQcJHBA69UiHUChtaYMInUeko,6852
32
- ai_cr-3.0.0.dist-info/LICENSE,sha256=VbdF_GbbDK24JvdTfnsxa2M6jmhsxmRSFeHCx-lICGE,1075
33
- ai_cr-3.0.0.dist-info/METADATA,sha256=HzNuuuJhSDq9LwSRuzx0QUOHQRhC7-p3KX6XmAoYH_c,7989
34
- ai_cr-3.0.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
35
- ai_cr-3.0.0.dist-info/entry_points.txt,sha256=Ua1DxkhJJ8TZuLgnH-IlWCkrre_0S0dq_GtYRaYupWk,38
36
- ai_cr-3.0.0.dist-info/RECORD,,
33
+ ai_cr-3.1.0.dist-info/LICENSE,sha256=VbdF_GbbDK24JvdTfnsxa2M6jmhsxmRSFeHCx-lICGE,1075
34
+ ai_cr-3.1.0.dist-info/METADATA,sha256=yGLpvMwx55qR2mIzKvrIqMPqaG48JUAI48e54weEBhQ,7989
35
+ ai_cr-3.1.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
36
+ ai_cr-3.1.0.dist-info/entry_points.txt,sha256=Ua1DxkhJJ8TZuLgnH-IlWCkrre_0S0dq_GtYRaYupWk,38
37
+ ai_cr-3.1.0.dist-info/RECORD,,
gito/bootstrap.py CHANGED
@@ -41,7 +41,10 @@ def bootstrap(verbosity: int = 1):
41
41
  Env.verbosity = verbosity
42
42
  Env.logging_level = log_levels_by_verbosity.get(verbosity, logging.INFO)
43
43
  setup_logging(Env.logging_level)
44
- logging.info("Bootstrapping... "+mc.ui.gray(f"[verbosity={verbosity}]"))
44
+ logging.info(
45
+ f"Bootstrapping Gito v{Env.gito_version}... "
46
+ + mc.ui.gray(f"[verbosity={verbosity}]")
47
+ )
45
48
 
46
49
  # cp1251 is used on Windows when redirecting output
47
50
  if sys.stdout.encoding and sys.stdout.encoding.lower() != "utf-8":
gito/cli.py CHANGED
@@ -26,7 +26,7 @@ from .utils import no_subcommand, extract_gh_owner_repo, remove_html_comments
26
26
  from .gh_api import resolve_gh_token
27
27
 
28
28
  # Import fix command to register it
29
- from .commands import fix, gh_react_to_comment, repl, deploy # noqa
29
+ from .commands import fix, gh_react_to_comment, repl, deploy, version # noqa
30
30
  from .commands.gh_post_review_comment import post_github_cr_comment
31
31
  from .commands.linear_comment import linear_comment
32
32
 
@@ -0,0 +1,8 @@
1
+ from ..cli_base import app
2
+ from ..env import Env
3
+
4
+
5
+ @app.command(name='version', help='Show the version of gito.bot')
6
+ def version():
7
+ print(Env.gito_version)
8
+ return Env.gito_version
gito/constants.py CHANGED
@@ -1,4 +1,5 @@
1
1
  from pathlib import Path
2
+ from .env import Env
2
3
 
3
4
  PROJECT_GITO_FOLDER = ".gito"
4
5
  PROJECT_CONFIG_FILE_NAME = "config.toml"
@@ -9,5 +10,5 @@ JSON_REPORT_FILE_NAME = "code-review-report.json"
9
10
  GITHUB_MD_REPORT_FILE_NAME = "code-review-report.md"
10
11
  EXECUTABLE = "gito"
11
12
  TEXT_ICON_URL = 'https://raw.githubusercontent.com/Nayjest/Gito/main/press-kit/logo/gito-bot-1_64top.png' # noqa: E501
12
- HTML_TEXT_ICON = f'<a href="https://github.com/Nayjest/Gito"><img src="{TEXT_ICON_URL}" align="left" width=64 height=50 /></a>' # noqa: E501
13
+ HTML_TEXT_ICON = f'<a href="https://github.com/Nayjest/Gito"><img src="{TEXT_ICON_URL}" align="left" width=64 height=50 title="Gito v{Env.gito_version}"/></a>' # noqa: E501
13
14
  HTML_CR_COMMENT_MARKER = '<!-- GITO_COMMENT:CODE_REVIEW_REPORT -->'
gito/core.py CHANGED
@@ -230,6 +230,7 @@ def make_cr_summary(ctx: Context, **kwargs) -> str:
230
230
  diff=mc.tokenizing.fit_to_token_size(ctx.diff, ctx.config.max_code_tokens)[0],
231
231
  issues=ctx.report.issues,
232
232
  pipeline_out=ctx.pipeline_out,
233
+ env=Env,
233
234
  **ctx.config.prompt_vars,
234
235
  **kwargs,
235
236
  ).to_llm()
gito/env.py CHANGED
@@ -1,3 +1,7 @@
1
+ from importlib.metadata import version
2
+
3
+
1
4
  class Env:
2
5
  logging_level: int = 1
3
6
  verbosity: int = 1
7
+ gito_version: str = version("gito.bot")
File without changes
File without changes