mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 22:54:28 -05:00
Move top level ruff into python folder (#1806)
https://maturin.rs/project_layout.html#mixed-rustpython-project Resolves #1805
This commit is contained in:
0
python/ruff/__init__.py
Normal file
0
python/ruff/__init__.py
Normal file
7
python/ruff/__main__.py
Normal file
7
python/ruff/__main__.py
Normal 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:]]))
|
||||
Reference in New Issue
Block a user