mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:21 +00:00
Add markdownlint
and dev Ruff to pre-commit
(#2303)
This commit is contained in:
parent
ec8b827d26
commit
bdcab87d2f
23 changed files with 277 additions and 236 deletions
|
@ -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:]]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue