mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Add isort pre-commit hook
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user