Add markdownlint and dev Ruff to pre-commit (#2303)

This commit is contained in:
Jonathan Plasse 2023-02-02 22:29:07 +01:00 committed by GitHub
parent ec8b827d26
commit bdcab87d2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 277 additions and 236 deletions

View file

@ -1,7 +1,8 @@
import os
import sys
import sysconfig
from pathlib import Path
if __name__ == "__main__":
ruff = os.path.join(sysconfig.get_path("scripts"), "ruff")
ruff = Path(sysconfig.get_path("scripts")) / "ruff"
sys.exit(os.spawnv(os.P_WAIT, ruff, [ruff, *sys.argv[1:]]))