ruff: enable warning lints

This commit is contained in:
Jörg Thalheim
2024-10-23 10:20:43 +02:00
committed by Mic92
parent 4c4d4d07f0
commit 4230ae6750
15 changed files with 30 additions and 15 deletions

View File

@@ -167,7 +167,7 @@ def create_identity() -> Identity:
tmpdir = Path(d)
private = tmpdir / "identity.secret"
public = tmpdir / "identity.public"
subprocess.run(["zerotier-idtool", "generate", private, public])
subprocess.run(["zerotier-idtool", "generate", private, public], check=True)
return Identity(tmpdir)

View File

@@ -24,7 +24,7 @@ def main() -> None:
f.write(json.dumps(moon_json))
f.flush()
Path(moons_d).mkdir(parents=True, exist_ok=True)
subprocess.run(["zerotier-idtool", "genmoon", f.name], cwd=moons_d)
subprocess.run(["zerotier-idtool", "genmoon", f.name], cwd=moons_d, check=True)
if __name__ == "__main__":