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

@@ -19,7 +19,7 @@ GIT_COMMANDS = {
19
19
  "add_updated": ["add", "-u"],
20
20
  "push_porcelain": ["push", "--porcelain"],
21
21
  "current_branch": ["branch", "--show-current"],
22
- "commits_ahead": ["rev-list[t.Any]", "--count", "@{u}..HEAD"],
22
+ "commits_ahead": ["rev-list", "--count", "@{u}..HEAD"],
23
23
  }
24
24
 
25
25
 
@@ -2711,8 +2711,14 @@ SAFE_PATTERNS: dict[str, ValidatedPattern] = {
2711
2711
  description="Detect usage of typing module aliases like t.Any, t.Dict, etc.",
2712
2712
  global_replace=True,
2713
2713
  test_cases=[
2714
- ("def func(x: t.Any) -> t.Dict:", "def func(x: ny) -> ict:"), # Removes t.A and t.D
2715
- ("value: t.Optional[str] = None", "value: ptional[str] = None"), # Removes t.O
2714
+ (
2715
+ "def func(x: t.Any) -> t.Dict:",
2716
+ "def func(x: ny) -> ict:",
2717
+ ), # Removes t.A and t.D
2718
+ (
2719
+ "value: t.Optional[str] = None",
2720
+ "value: ptional[str] = None",
2721
+ ), # Removes t.O
2716
2722
  ("from typing import Dict", "from typing import Dict"), # No match
2717
2723
  ("data = dict()", "data = dict()"), # No match
2718
2724
  ],
@@ -78,7 +78,12 @@ class SubprocessSecurityConfig:
78
78
 
79
79
  class SecureSubprocessExecutor:
80
80
  def __init__(self, config: SubprocessSecurityConfig | None = None):
81
- self.config = config or SubprocessSecurityConfig()
81
+ if config is None:
82
+ # When no explicit config provided, respect debug mode for logging
83
+ debug_enabled = os.environ.get("CRACKERJACK_DEBUG", "0") == "1"
84
+ self.config = SubprocessSecurityConfig(enable_command_logging=debug_enabled)
85
+ else:
86
+ self.config = config
82
87
  self.security_logger = get_security_logger()
83
88
 
84
89
  self.dangerous_patterns = [
@@ -131,7 +131,8 @@ class SecurityLogger:
131
131
  if debug_enabled:
132
132
  console_handler.setLevel(logging.WARNING)
133
133
  else:
134
- console_handler.setLevel(logging.CRITICAL + 1)
134
+ # Suppress all security logs during normal operation
135
+ console_handler.setLevel(logging.CRITICAL + 10)
135
136
 
136
137
  formatter = logging.Formatter(
137
138
  "%(asctime)s - SECURITY - %(levelname)s-%(message)s"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crackerjack
3
- Version: 0.33.3
3
+ Version: 0.33.5
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
@@ -174,7 +174,7 @@ crackerjack/services/enterprise_optimizer.py,sha256=q6srIGxe18N9zH-MNhZ9R34sWnr_
174
174
  crackerjack/services/error_pattern_analyzer.py,sha256=bTMwhAMAjVPSUXrNkrtm1KDqfxjnyBMGAPwetBUGCM4,24402
175
175
  crackerjack/services/file_hasher.py,sha256=eReytwwK-_-B8JBnpwytDC52cKKgg4qpaxaZKcQjD-0,5211
176
176
  crackerjack/services/filesystem.py,sha256=nmL3mYqylS_BSQpwFbC7EMHoA44K5qUxa9CPg1QFZvc,17480
177
- crackerjack/services/git.py,sha256=a5uwUvZn6bmL6LWN_3G7Pfte036IW_dR4mugpuCP_r8,12723
177
+ crackerjack/services/git.py,sha256=g0D9K7PFGWiv_-CbPXEhGtxJVJccEsshYNEmGstjXss,12716
178
178
  crackerjack/services/health_metrics.py,sha256=KmwFlvcB-Pb8DnDI0IRV9ETDdp_vJTaGlhJ_HmBL2YY,21538
179
179
  crackerjack/services/heatmap_generator.py,sha256=zz5V-zXPfoCGNXoj7iuyOeFuDRRUhFpxuENUnd0X75g,26200
180
180
  crackerjack/services/initialization.py,sha256=oq0D9AZtLufvIP8sNOVayaEhW9PAhXb7NFHFcd2RHjs,25772
@@ -195,13 +195,13 @@ crackerjack/services/predictive_analytics.py,sha256=OcZYP0p2_zZuyWqbqzLHDoHTxVfr
195
195
  crackerjack/services/quality_baseline.py,sha256=ImC1XTFTfrwFIDDDX1F0V7sGquAXI21oVxgjOSYIYFQ,8229
196
196
  crackerjack/services/quality_baseline_enhanced.py,sha256=mBxzXD4lkegPc_q_KNJyorBk0cezud40lOWYDBWeNGU,24064
197
197
  crackerjack/services/quality_intelligence.py,sha256=iVmYJyyfiU78dR2lsl47PZBee8dj5eCI6f2lYksp0FM,28393
198
- crackerjack/services/regex_patterns.py,sha256=iom290RuCsoS7mWFtBBCMR0gIoy9dPckte5e7LAvWT0,117247
198
+ crackerjack/services/regex_patterns.py,sha256=iis9gSzXZtnX14lODGfSUsf7bcCRTw7rdSgog5DKFNk,117341
199
199
  crackerjack/services/regex_utils.py,sha256=e7AD59_L-T5-oOxzqsGgrLd94uxRE9aKnwasZkohwI8,14966
200
200
  crackerjack/services/secure_path_utils.py,sha256=aHsLwxDch42DidPYtTL_ko40g2rhbXDLnRhcx2LlGk8,16688
201
201
  crackerjack/services/secure_status_formatter.py,sha256=yhwNtzvvQVcuHsNOTNZMzlqIMQT9zx-lzAtq9LuSDuk,14121
202
- crackerjack/services/secure_subprocess.py,sha256=hVUWZMr0f3NZDG_MfhHnf6a66MRtC-7e2i-yGJPca7M,17049
202
+ crackerjack/services/secure_subprocess.py,sha256=UAXyRgus-PJ4nOfSq9m_Ji8xmni4Hyl7uHmPsJwoQrQ,17308
203
203
  crackerjack/services/security.py,sha256=plgIz-B8oYN_mpF4NYrqHnT7TRcsp4jr0-YlV9WgD5o,7298
204
- crackerjack/services/security_logger.py,sha256=B4yuXKi02SRikS8aXLR_fpMrziAAPRvCV6C4vAP60mE,16710
204
+ crackerjack/services/security_logger.py,sha256=_hQUQZekiafpIKyULgVxrQHrwPpTKv89jNf-XWqaAhg,16780
205
205
  crackerjack/services/server_manager.py,sha256=IQ0oUFEEMZTxI8csecIJzkCSMESE5KIkYqPxa56tvUw,11399
206
206
  crackerjack/services/smart_scheduling.py,sha256=VSaL7DpKR6aa0sC_TUrYP9ZgC9CB7tE3TTNzEqB-GpE,4352
207
207
  crackerjack/services/status_authentication.py,sha256=2OJ1MoWlBuvUUXOX02N_zdWKzQfXz4jhEZpsmIJfQ00,16453
@@ -222,8 +222,8 @@ crackerjack/slash_commands/status.md,sha256=U3qqppVLtIIm2lEiMYaKagaHYLI9UplL7OH1
222
222
  crackerjack/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
223
223
  crackerjack/tools/validate_input_validator_patterns.py,sha256=NN7smYlXWrHLQXTb-81gRam2vjW-cJav92f1klPA0qA,8234
224
224
  crackerjack/tools/validate_regex_patterns.py,sha256=y2pAp2BzfSC_3XYMIKGMpQFwwwDidPy3k2Y2almOy74,5811
225
- crackerjack-0.33.3.dist-info/METADATA,sha256=xpQiH0dqWxKTbiRr0ScCq9NWXPefUfy5W5zy-NFwqjY,37942
226
- crackerjack-0.33.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
227
- crackerjack-0.33.3.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
228
- crackerjack-0.33.3.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
229
- crackerjack-0.33.3.dist-info/RECORD,,
225
+ crackerjack-0.33.5.dist-info/METADATA,sha256=fiWKF7JjyVGqGGtVk2v-JvYCJh1rbCk6bzzMMgt7RzY,37942
226
+ crackerjack-0.33.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
227
+ crackerjack-0.33.5.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
228
+ crackerjack-0.33.5.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
229
+ crackerjack-0.33.5.dist-info/RECORD,,