Automatic fixes to Python files
check=True was manually set when return code was checked later
This commit is contained in:
parent
a3f4c2a932
commit
34b545890d
7 changed files with 22 additions and 33 deletions
|
@ -19,9 +19,8 @@ def process_flake(flakeUri: str) -> None:
|
|||
if not os.path.isfile(flakeFile):
|
||||
raise FileNotFoundError(f"Flake not found: {flakeUri}")
|
||||
# import dependencies
|
||||
p = subprocess.run(GET_INPUTS_CMD, cwd=flakeUri, stdout=subprocess.PIPE)
|
||||
p = subprocess.run(GET_INPUTS_CMD, cwd=flakeUri, stdout=subprocess.PIPE, check=True)
|
||||
deps = json.loads(p.stdout)
|
||||
p.check_returncode()
|
||||
# for each dependency
|
||||
for dep_name, dep in deps.items():
|
||||
dep_url = dep["url"]
|
||||
|
@ -47,8 +46,7 @@ def process_flake(flakeUri: str) -> None:
|
|||
"update",
|
||||
dep_name,
|
||||
]
|
||||
p = subprocess.run(cmd, cwd=flakeUri)
|
||||
p.check_returncode()
|
||||
p = subprocess.run(cmd, cwd=flakeUri, check=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue