File size: 271 Bytes
f747401
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import subprocess

try:
    subprocess.check_call(["git", "add", "."])
    print("Add successful")
    subprocess.check_call(
        ["git", "commit", "-m", "fix: flake8 linting errors"])
    print("Commit successful")
except Exception as e:
    print("Error:", str(e))