crackerjack 0.20.7__py3-none-any.whl → 0.20.11__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/__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)