maxmx03.solarized.nvim/test.py
Max Miliano a630aa5593 fix: Configuring highlight of type "variable" #69
feat: github workflows, vusted, stylua
2024-03-28 12:20:12 -03:00

28 lines
668 B
Python
Executable file

#!/usr/bin/python3
import subprocess
import sys
def run_commands(commands):
for command in commands:
process = subprocess.Popen(command, shell=True)
process.wait()
if __name__ == '__main__':
install_dependencies = False
if len(sys.argv) > 1 and sys.argv[1] == '--install':
install_dependencies = True
commands = []
if install_dependencies:
commands.append('cargo install stylua')
commands.append('sudo luarocks install luacheck')
commands.append('sudo luarocks install vusted')
commands.append('stylua . -f ./stylua.toml')
commands.append('vusted ./tests')
run_commands(commands)