Add isort pre-commit hook

This commit is contained in:
Zach Borboa
2023-09-08 08:53:55 -07:00
parent 7c894b973f
commit 753bff006f
4 changed files with 8 additions and 4 deletions
+6
View File
@@ -17,6 +17,12 @@ repos:
- id: black
name: black
entry: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
args: [--force-single-line-imports]
- repo: local
hooks:
- id: composer-validate
@@ -13,7 +13,6 @@ import curses
import json
import os
FIFO = "/tmp/myfifo"
@@ -15,7 +15,6 @@ import sys
from tqdm import tqdm
FIFO = "/tmp/myfifo"
+2 -2
View File
@@ -3,13 +3,13 @@ import os
import pprint
import subprocess
from copy import copy
from datetime import datetime, timezone
from datetime import datetime
from datetime import timezone
from pathlib import Path
import git
from github import Github
# The owner and repository name. For example, octocat/Hello-World.
GITHUB_REPOSITORY = os.getenv("GITHUB_REPOSITORY")