mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:21 +00: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:
parent
f450e2e79d
commit
9a07b0623e
3 changed files with 1 additions and 0 deletions
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:]]))
|
Loading…
Add table
Add a link
Reference in a new issue