File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,9 +52,7 @@ def _parse_json_string_list_env(var_name: str) -> list[str]:
5252 try :
5353 parsed = json .loads (raw_value )
5454 except json .JSONDecodeError as exc :
55- raise ValueError (
56- f"{ var_name } must be a JSON array of strings, got invalid JSON"
57- ) from exc
55+ raise ValueError (f"{ var_name } must be a JSON array of strings, got invalid JSON" ) from exc
5856
5957 if not isinstance (parsed , list ):
6058 raise ValueError (f"{ var_name } must be a JSON array of strings" )
@@ -129,9 +127,7 @@ def from_env(cls) -> Config:
129127 extra_extensions [f".{ token } " ] = None
130128
131129 # Excluded file glob patterns
132- excluded_patterns = _parse_json_string_list_env (
133- "COCOINDEX_CODE_EXCLUDED_PATTERNS"
134- )
130+ excluded_patterns = _parse_json_string_list_env ("COCOINDEX_CODE_EXCLUDED_PATTERNS" )
135131
136132 return cls (
137133 codebase_root_path = root ,
You can’t perform that action at this time.
0 commit comments