crackerjack 0.20.7__py3-none-any.whl → 0.20.10__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.
- crackerjack/.ruff_cache/0.11.13/1867267426380906393 +0 -0
- crackerjack/__init__.py +0 -2
- crackerjack/__main__.py +2 -11
- crackerjack/crackerjack.py +191 -1083
- crackerjack/errors.py +0 -20
- crackerjack/interactive.py +38 -121
- crackerjack/py313.py +10 -50
- crackerjack/pyproject.toml +1 -1
- {crackerjack-0.20.7.dist-info → crackerjack-0.20.10.dist-info}/METADATA +1 -1
- {crackerjack-0.20.7.dist-info → crackerjack-0.20.10.dist-info}/RECORD +13 -13
- {crackerjack-0.20.7.dist-info → crackerjack-0.20.10.dist-info}/WHEEL +0 -0
- {crackerjack-0.20.7.dist-info → crackerjack-0.20.10.dist-info}/entry_points.txt +0 -0
- {crackerjack-0.20.7.dist-info → crackerjack-0.20.10.dist-info}/licenses/LICENSE +0 -0
Binary file
|
crackerjack/__init__.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import typing as t
|
2
|
-
|
3
2
|
from .crackerjack import Crackerjack, create_crackerjack_runner
|
4
3
|
from .errors import (
|
5
4
|
CleaningError,
|
@@ -22,7 +21,6 @@ try:
|
|
22
21
|
__version__ = version("crackerjack")
|
23
22
|
except (ImportError, ModuleNotFoundError):
|
24
23
|
__version__ = "0.19.8"
|
25
|
-
|
26
24
|
__all__: t.Sequence[str] = [
|
27
25
|
"create_crackerjack_runner",
|
28
26
|
"Crackerjack",
|
crackerjack/__main__.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
from enum import Enum
|
2
|
-
|
3
2
|
import typer
|
4
3
|
from pydantic import BaseModel, field_validator
|
5
4
|
from rich.console import Console
|
@@ -129,15 +128,10 @@ cli_options = {
|
|
129
128
|
case_sensitive=False,
|
130
129
|
),
|
131
130
|
"create_pr": typer.Option(
|
132
|
-
False,
|
133
|
-
"-r",
|
134
|
-
"--pr",
|
135
|
-
help="Create a pull request to the upstream repository.",
|
131
|
+
False, "-r", "--pr", help="Create a pull request to the upstream repository."
|
136
132
|
),
|
137
133
|
"rich_ui": typer.Option(
|
138
|
-
False,
|
139
|
-
"--rich-ui",
|
140
|
-
help="Use the interactive Rich UI for a better experience.",
|
134
|
+
False, "--rich-ui", help="Use the interactive Rich UI for a better experience."
|
141
135
|
),
|
142
136
|
"ai_agent": typer.Option(
|
143
137
|
False,
|
@@ -195,12 +189,10 @@ def main(
|
|
195
189
|
create_pr=create_pr,
|
196
190
|
rich_ui=rich_ui,
|
197
191
|
)
|
198
|
-
|
199
192
|
if ai_agent:
|
200
193
|
import os
|
201
194
|
|
202
195
|
os.environ["AI_AGENT"] = "1"
|
203
|
-
|
204
196
|
if rich_ui:
|
205
197
|
from crackerjack.interactive import launch_interactive_cli
|
206
198
|
|
@@ -210,7 +202,6 @@ def main(
|
|
210
202
|
pkg_version = version("crackerjack")
|
211
203
|
except (ImportError, ModuleNotFoundError):
|
212
204
|
pkg_version = "0.19.8"
|
213
|
-
|
214
205
|
launch_interactive_cli(pkg_version)
|
215
206
|
else:
|
216
207
|
runner = create_crackerjack_runner(console=console)
|