crackerjack 0.37.6__py3-none-any.whl → 0.37.8__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.

Potentially problematic release.


This version of crackerjack might be problematic. Click here for more details.

@@ -333,6 +333,8 @@ CLI_OPTIONS = {
333
333
  "-p",
334
334
  "--publish",
335
335
  callback=parse_bump_option_with_flag_support,
336
+ is_flag=False,
337
+ flag_value="interactive",
336
338
  help=(
337
339
  "Bump version and publish to PyPI (patch, minor, major, auto). "
338
340
  "Use 'interactive' to be prompted for version selection. "
@@ -459,7 +459,13 @@ PRE_COMMIT_TEMPLATE = """repos:
459
459
  class DynamicConfigGenerator:
460
460
  def __init__(self, package_directory: str | None = None) -> None:
461
461
  self.template = jinja2.Template(PRE_COMMIT_TEMPLATE)
462
- self.package_directory = package_directory or self._detect_package_directory()
462
+ self.package_directory = self._sanitize_package_directory(
463
+ package_directory or self._detect_package_directory()
464
+ )
465
+
466
+ def _sanitize_package_directory(self, package_directory: str) -> str:
467
+ """Convert hyphens to underscores in package directory names."""
468
+ return package_directory.replace("-", "_")
463
469
 
464
470
  def _detect_package_directory(self) -> str:
465
471
  """Detect the package directory name for the current project."""
@@ -12,8 +12,10 @@ class ConfigurationService:
12
12
  def __init__(self, console: Console, pkg_path: Path) -> None:
13
13
  self.console = console
14
14
  self.pkg_path = pkg_path
15
- # Extract package directory name from the pkg_path
15
+ # Extract package directory name from the pkg_path and sanitize it
16
16
  package_directory = pkg_path.name if pkg_path != Path.cwd() else None
17
+ if package_directory:
18
+ package_directory = package_directory.replace("-", "_")
17
19
  self.config_generator = DynamicConfigGenerator(package_directory)
18
20
 
19
21
  def update_precommit_config(self, options: OptionsProtocol) -> bool:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crackerjack
3
- Version: 0.37.6
3
+ Version: 0.37.8
4
4
  Summary: Crackerjack Python project management tool
5
5
  Project-URL: documentation, https://github.com/lesleslie/crackerjack
6
6
  Project-URL: homepage, https://github.com/lesleslie/crackerjack
@@ -2,7 +2,7 @@ crackerjack/__init__.py,sha256=k8_Ev_3fWdjFtGNSJdSOvyaSLW54y3j484d3a8k_Ob4,1396
2
2
  crackerjack/__main__.py,sha256=lE5ZDbAzI9TLCzMTxFGw23Dk1hP-MEhd1i_nNbi_Mag,52515
3
3
  crackerjack/api.py,sha256=sfKzCphsTMFCvdNizviPdYemwg0H8Oei_5C08LAuDvA,21538
4
4
  crackerjack/code_cleaner.py,sha256=M1zVaq31uW0nOkPneKR8kfR3892gyyVx0VhFgRaxsj4,44338
5
- crackerjack/dynamic_config.py,sha256=YGlUyTEp_K9rGWtLsboXMtVeKyI7bUoNoftO3ZnCiwc,21815
5
+ crackerjack/dynamic_config.py,sha256=-lpwDhkVwxAXUDbX47sEClZZieNbkqhDxk_2jpxpLBw,22070
6
6
  crackerjack/errors.py,sha256=yYbZ92kn_y6acEWgQvEPvozAYs2HT65uLwAXrtXxGsE,10049
7
7
  crackerjack/interactive.py,sha256=QXFZrnbY0nc8rFJcivFAVFNgUTHXqLCu3FFv5bmq_eI,21634
8
8
  crackerjack/adapters/__init__.py,sha256=k-8ajMDL9DS9hV2FYOu694nmNQg3HkudJRuNcXmx8N4,451
@@ -34,7 +34,7 @@ crackerjack/cli/cache_handlers_enhanced.py,sha256=6X5rYSo1l-rj9eb7eB8mpA-6BlUagy
34
34
  crackerjack/cli/facade.py,sha256=e4_oB04awqEijI3yqiYAZGc6x09uMBa4ih0SsXpgMuY,3751
35
35
  crackerjack/cli/handlers.py,sha256=mYhwMLUKid6mQLff0ScpcnhP0yUS9IzOIMdM7VLkUCc,17178
36
36
  crackerjack/cli/interactive.py,sha256=E7WgzgNRlgOuKLbi5Io3RQ3BBXS8sIDiUQcJh6b2x9I,17583
37
- crackerjack/cli/options.py,sha256=YmQF94SRihWVGL2s7SDmdcDc7VmgTt_V9ppYl_jQBwU,36489
37
+ crackerjack/cli/options.py,sha256=HzAO8jKkpxOf_34pvAO28Eqo5g51nEFRkcOJDqTZj8o,36546
38
38
  crackerjack/cli/utils.py,sha256=XC7dT8GNidhORjUe2p2hQOpZgCi2KvVCNu6g3azzgqY,584
39
39
  crackerjack/config/__init__.py,sha256=b0481N2f_JvGufMPcbo5IXu2VjYd111r1BHw0oD3x7o,330
40
40
  crackerjack/config/global_lock_config.py,sha256=PyonoA2__HKEEvn6SD-gEYh9iD7xIAdts2C3lNoTWhw,1996
@@ -157,7 +157,7 @@ crackerjack/services/backup_service.py,sha256=0e8AAo9svSBtbsbI9vwnAVSilB2fjph61l
157
157
  crackerjack/services/bounded_status_operations.py,sha256=mrBkUQwgtYjkbp-Y-5MdrU2A3rp3ZLVgOJv9vLdnJ8k,18763
158
158
  crackerjack/services/cache.py,sha256=FutQKxItKSdQFzOlWQaQzVBEfn6lbPXCDdvNnz3NCDQ,14536
159
159
  crackerjack/services/changelog_automation.py,sha256=KUeXCYLihRfLR0mUIRiI2aRQdCfe-45GnbB2gYNJJQE,14095
160
- crackerjack/services/config.py,sha256=fF3EpPfIxFBmZ9oTr7V64zCMBmxHWCmD_649qr0dgsI,13590
160
+ crackerjack/services/config.py,sha256=1gUQkcHPCGHVYSlx6mcrJlJLVIWhdaL7RjEmuy8_ev4,13704
161
161
  crackerjack/services/config_integrity.py,sha256=Ac6-c7WuupsyrP2dxx_ijgjzpNnx9G0NWsXB-SZjelg,2904
162
162
  crackerjack/services/config_merge.py,sha256=FPh4u4J68JkNVf0AT1paNeEy2MjusSbYu9kN72LzR9w,18825
163
163
  crackerjack/services/config_template.py,sha256=RgSYFVNBxdBfMitlRqz7bzkEHaQhEWMm3pUMS7maRFU,18035
@@ -224,8 +224,8 @@ crackerjack/tools/validate_input_validator_patterns.py,sha256=NN7smYlXWrHLQXTb-8
224
224
  crackerjack/tools/validate_regex_patterns.py,sha256=9ejFb7Tw1js_oydzuEeeeXvrU5ipHUEX9ATBfkLCCE8,5811
225
225
  crackerjack/ui/__init__.py,sha256=eMb1OeTU-dSLICAACn0YdYB4Amdr8wHckjKfn0wOIZE,37
226
226
  crackerjack/ui/server_panels.py,sha256=F5IH6SNN06BaZQMsFx_D-OA286aojmaFPJ5kvvSRv_c,4232
227
- crackerjack-0.37.6.dist-info/METADATA,sha256=d2qKtD9FcvfiMYmse64er8Q8jV8WmGxVLLik_EPoXKw,37949
228
- crackerjack-0.37.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
229
- crackerjack-0.37.6.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
230
- crackerjack-0.37.6.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
231
- crackerjack-0.37.6.dist-info/RECORD,,
227
+ crackerjack-0.37.8.dist-info/METADATA,sha256=qF__5Ea3FSxtJK3fOtYXXnX3Y6WPwA-drRfCYVteHsw,37949
228
+ crackerjack-0.37.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
229
+ crackerjack-0.37.8.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
230
+ crackerjack-0.37.8.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
231
+ crackerjack-0.37.8.dist-info/RECORD,,