Upgrade Fantomas and add Woodpecker build

This commit is contained in:
Smaug123
2023-08-04 21:34:13 +01:00
parent a67ff75dc4
commit 2fe35b4ab6
6 changed files with 34 additions and 6 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", "tool", "run", "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 tool run fantomas .`")
def check_alejandra():