@@ -39,18 +39,18 @@ class Arca:
39
39
40
40
def __init__ (self , backend : BackendDefinitionType = NOT_SET ,
41
41
settings = None ,
42
- single_pull = None ,
43
- base_dir = None ,
44
- ignore_cache_errors = None ) -> None :
42
+ single_pull = NOT_SET ,
43
+ base_dir = NOT_SET ,
44
+ ignore_cache_errors = NOT_SET ) -> None :
45
45
self .settings : Settings = Settings (settings )
46
46
47
- if ignore_cache_errors is not None :
47
+ if ignore_cache_errors is not NOT_SET :
48
48
self .ignore_cache_errors = bool (ignore_cache_errors )
49
49
50
- if single_pull is not None :
50
+ if single_pull is not NOT_SET :
51
51
self .single_pull = bool (single_pull )
52
52
53
- if base_dir is not None :
53
+ if base_dir is not NOT_SET :
54
54
self .base_dir = base_dir
55
55
56
56
self .region : CacheRegion = self .make_region ()
@@ -378,9 +378,7 @@ def run(self, repo: str, branch: str, task: Task, *,
378
378
379
379
logger .info ("Running Arca task %r for repo '%s' in branch '%s'" , task , repo , branch )
380
380
381
- git_repo , repo_path = self .get_files (repo , branch ,
382
- depth = depth ,
383
- reference = reference )
381
+ git_repo , repo_path = self .get_files (repo , branch , depth = depth , reference = reference )
384
382
385
383
def create_value ():
386
384
logger .debug ("Value not in cache, creating." )
@@ -428,9 +426,7 @@ def static_filename(self, repo: str, branch: str, relative_path: Union[str, Path
428
426
if not isinstance (relative_path , Path ):
429
427
relative_path = Path (relative_path )
430
428
431
- _ , repo_path = self .get_files (repo , branch ,
432
- depth = depth ,
433
- reference = reference )
429
+ _ , repo_path = self .get_files (repo , branch , depth = depth , reference = reference )
434
430
435
431
result = repo_path / relative_path
436
432
result = result .resolve ()
0 commit comments