Some stuff I found lying around my disk (#11)

This commit is contained in:
Patrick Stevens
2023-09-02 21:48:31 +01:00
committed by GitHub
parent 96593f399a
commit 09ccb7b90c
36 changed files with 501 additions and 359 deletions

View File

@@ -3,10 +3,10 @@
import subprocess
def check_fantomas():
result = subprocess.run(["dotnet", "tool", "run", "fantomas", "--check", "-r", "."])
result = subprocess.run(["dotnet", "fantomas", "--check", "."])
if result.returncode != 0:
print(result.stdout)
raise Exception(f"Formatting incomplete (return code: {result.returncode}). Consider running `dotnet tool run fantomas -r .`")
raise Exception(f"Formatting incomplete (return code: {result.returncode}). Consider running `dotnet fantomas .`")
def main():