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

@@ -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 = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crackerjack
3
- Version: 0.33.2
3
+ Version: 0.33.4
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
@@ -195,11 +195,11 @@ 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
204
  crackerjack/services/security_logger.py,sha256=B4yuXKi02SRikS8aXLR_fpMrziAAPRvCV6C4vAP60mE,16710
205
205
  crackerjack/services/server_manager.py,sha256=IQ0oUFEEMZTxI8csecIJzkCSMESE5KIkYqPxa56tvUw,11399
@@ -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.2.dist-info/METADATA,sha256=xDRVB5c1SItkZsrd38O-pHRJqECpIxggPoDulU2PXJE,37942
226
- crackerjack-0.33.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
227
- crackerjack-0.33.2.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
228
- crackerjack-0.33.2.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
229
- crackerjack-0.33.2.dist-info/RECORD,,
225
+ crackerjack-0.33.4.dist-info/METADATA,sha256=LkBXYa8WJUPs9hm1DLxqIzAGicS1pmesx8Om6pS6qyI,37942
226
+ crackerjack-0.33.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
227
+ crackerjack-0.33.4.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
228
+ crackerjack-0.33.4.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
229
+ crackerjack-0.33.4.dist-info/RECORD,,