Skip to content

Commit 9255f96

Browse files
author
Alan Christie
committedDec 7, 2023
style: Use of isort in pre-commit
1 parent a78469d commit 9255f96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+303
-361
lines changed
 

‎.pre-commit-config.yaml

+20-10
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ repos:
2020
args:
2121
- --markdown-linebreak-ext=md
2222

23+
# isort (in black-compatibility mode)
24+
- repo: https://github.com/pycqa/isort
25+
rev: 5.12.0
26+
hooks:
27+
- id: isort
28+
args:
29+
- --profile
30+
- black
31+
- --filter-files
32+
33+
# Black (uncompromising) Python code formatter
34+
- repo: https://github.com/psf/black
35+
rev: 23.11.0
36+
hooks:
37+
- id: black
38+
args:
39+
- --skip-string-normalization
40+
- --target-version
41+
- py311
42+
2343
# MyPy
2444
#- repo: https://github.com/pre-commit/mirrors-mypy
2545
# rev: v1.7.1
@@ -32,16 +52,6 @@ repos:
3252
# - types-python-dateutil
3353
# - types-requests
3454

35-
# Black (uncompromising) Python code formatter
36-
- repo: https://github.com/psf/black
37-
rev: 23.11.0
38-
hooks:
39-
- id: black
40-
args:
41-
- --skip-string-normalization
42-
- --target-version
43-
- py311
44-
4555
# Pylint
4656
- repo: https://github.com/pycqa/pylint
4757
rev: v2.17.7

‎api/remote_ispyb_connector.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import threading
2+
import time
3+
import traceback
4+
5+
import pymysql
6+
import sshtunnel
27
from ispyb.connector.mysqlsp.main import ISPyBMySQLSPConnector as Connector
38
from ispyb.exception import (
49
ISPyBConnectionException,
510
ISPyBNoResultException,
611
ISPyBRetrieveFailed,
712
)
8-
import sshtunnel
9-
import time
10-
import traceback
11-
import pymysql
1213

1314

1415
class SSHConnector(Connector):

0 commit comments

Comments
 (0)
Please sign in to comment.