ai-cr 3.2.1__py3-none-any.whl → 3.3.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.
Files changed (40) hide show
  1. {ai_cr-3.2.1.dist-info → ai_cr-3.3.0.dist-info}/LICENSE +21 -21
  2. {ai_cr-3.2.1.dist-info → ai_cr-3.3.0.dist-info}/METADATA +1 -1
  3. ai_cr-3.3.0.dist-info/RECORD +41 -0
  4. {ai_cr-3.2.1.dist-info → ai_cr-3.3.0.dist-info}/WHEEL +1 -1
  5. gito/__main__.py +4 -4
  6. gito/bootstrap.py +90 -90
  7. gito/cli.py +255 -244
  8. gito/cli_base.py +104 -94
  9. gito/commands/__init__.py +1 -1
  10. gito/commands/deploy.py +138 -138
  11. gito/commands/fix.py +160 -160
  12. gito/commands/gh_post_review_comment.py +111 -111
  13. gito/commands/gh_react_to_comment.py +217 -217
  14. gito/commands/linear_comment.py +53 -53
  15. gito/commands/repl.py +30 -30
  16. gito/commands/version.py +8 -8
  17. gito/config.toml +450 -448
  18. gito/constants.py +15 -14
  19. gito/context.py +19 -19
  20. gito/core.py +520 -508
  21. gito/env.py +8 -7
  22. gito/gh_api.py +116 -116
  23. gito/issue_trackers.py +50 -50
  24. gito/pipeline.py +83 -83
  25. gito/pipeline_steps/jira.py +62 -62
  26. gito/pipeline_steps/linear.py +85 -85
  27. gito/project_config.py +85 -85
  28. gito/report_struct.py +136 -136
  29. gito/tpl/answer.j2 +25 -25
  30. gito/tpl/github_workflows/components/env-vars.j2 +11 -11
  31. gito/tpl/github_workflows/components/installs.j2 +23 -23
  32. gito/tpl/github_workflows/gito-code-review.yml.j2 +32 -32
  33. gito/tpl/github_workflows/gito-react-to-comments.yml.j2 +70 -70
  34. gito/tpl/partial/aux_files.j2 +8 -8
  35. gito/tpl/questions/changes_summary.j2 +55 -55
  36. gito/tpl/questions/release_notes.j2 +26 -26
  37. gito/tpl/questions/test_cases.j2 +37 -37
  38. gito/utils.py +267 -242
  39. ai_cr-3.2.1.dist-info/RECORD +0 -41
  40. {ai_cr-3.2.1.dist-info → ai_cr-3.3.0.dist-info}/entry_points.txt +0 -0
gito/constants.py CHANGED
@@ -1,14 +1,15 @@
1
- from pathlib import Path
2
- from .env import Env
3
-
4
- PROJECT_GITO_FOLDER = ".gito"
5
- PROJECT_CONFIG_FILE_NAME = "config.toml"
6
- PROJECT_CONFIG_FILE_PATH = Path(".gito") / PROJECT_CONFIG_FILE_NAME
7
- PROJECT_CONFIG_BUNDLED_DEFAULTS_FILE = Path(__file__).resolve().parent / PROJECT_CONFIG_FILE_NAME
8
- HOME_ENV_PATH = Path("~/.gito/.env").expanduser()
9
- JSON_REPORT_FILE_NAME = "code-review-report.json"
10
- GITHUB_MD_REPORT_FILE_NAME = "code-review-report.md"
11
- EXECUTABLE = "gito"
12
- TEXT_ICON_URL = 'https://raw.githubusercontent.com/Nayjest/Gito/main/press-kit/logo/gito-bot-1_64top.png' # 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
14
- HTML_CR_COMMENT_MARKER = '<!-- GITO_COMMENT:CODE_REVIEW_REPORT -->'
1
+ from pathlib import Path
2
+ from .env import Env
3
+
4
+ PROJECT_GITO_FOLDER = ".gito"
5
+ PROJECT_CONFIG_FILE_NAME = "config.toml"
6
+ PROJECT_CONFIG_FILE_PATH = Path(".gito") / PROJECT_CONFIG_FILE_NAME
7
+ PROJECT_CONFIG_BUNDLED_DEFAULTS_FILE = Path(__file__).resolve().parent / PROJECT_CONFIG_FILE_NAME
8
+ HOME_ENV_PATH = Path("~/.gito/.env").expanduser()
9
+ JSON_REPORT_FILE_NAME = "code-review-report.json"
10
+ GITHUB_MD_REPORT_FILE_NAME = "code-review-report.md"
11
+ EXECUTABLE = "gito"
12
+ TEXT_ICON_URL = 'https://raw.githubusercontent.com/Nayjest/Gito/main/press-kit/logo/gito-bot-1_64top.png' # 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
14
+ HTML_CR_COMMENT_MARKER = '<!-- GITO_COMMENT:CODE_REVIEW_REPORT -->'
15
+ REFS_VALUE_ALL = '!all'
gito/context.py CHANGED
@@ -1,19 +1,19 @@
1
- from dataclasses import dataclass, field
2
- from typing import Iterable, TYPE_CHECKING
3
-
4
- from unidiff.patch import PatchSet, PatchedFile
5
- from git import Repo
6
-
7
-
8
- if TYPE_CHECKING:
9
- from .project_config import ProjectConfig
10
- from .report_struct import Report
11
-
12
-
13
- @dataclass
14
- class Context:
15
- report: "Report"
16
- config: "ProjectConfig"
17
- diff: PatchSet | Iterable[PatchedFile]
18
- repo: Repo
19
- pipeline_out: dict = field(default_factory=dict)
1
+ from dataclasses import dataclass, field
2
+ from typing import Iterable, TYPE_CHECKING
3
+
4
+ from unidiff.patch import PatchSet, PatchedFile
5
+ from git import Repo
6
+
7
+
8
+ if TYPE_CHECKING:
9
+ from .project_config import ProjectConfig
10
+ from .report_struct import Report
11
+
12
+
13
+ @dataclass
14
+ class Context:
15
+ report: "Report"
16
+ config: "ProjectConfig"
17
+ diff: PatchSet | Iterable[PatchedFile]
18
+ repo: Repo
19
+ pipeline_out: dict = field(default_factory=dict)