Files
PulumiConfig/hooks/pre-push
Patrick Stevens 6d6c107f67 Bump to net8 (#24)
2024-01-28 23:56:18 +00:00

17 lines
382 B
Python
Executable File

#!/usr/bin/python3
import subprocess
def check_fantomas():
result = subprocess.run(["dotnet", "tool", "run", "fantomas", "--check", "."])
if result.returncode != 0:
raise Exception(f"Formatting incomplete (return code: {result.returncode}). Consider running `dotnet tool run fantomas .`")
def main():
check_fantomas()
if __name__ == "__main__":
main()