Spaces:
Build error
Build error
File size: 421 Bytes
873d0cf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import os
def install_refactor_tool():
os.system("pip install ruff==0.6.0")
def refactor():
os.system("ruff check --fix")
os.system("ruff format")
def create_commit():
os.system("git add .")
os.system("git commit -m 'refactor: Scheduled refactoring'")
def push():
os.system("git push")
if __name__ == "__main__":
install_refactor_tool()
refactor()
create_commit()
push()
|