Move top level ruff into python folder (#1806)

https://maturin.rs/project_layout.html#mixed-rustpython-project

Resolves #1805
This commit is contained in:
messense 2023-01-12 12:12:55 +08:00 committed by GitHub
parent f450e2e79d
commit 9a07b0623e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 0 deletions

7
python/ruff/__main__.py Normal file
View file

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