Skip to content

Commit 0e2ba6e

Browse files
authored
Changes isort profile to black, to be fully compatible and adds 'pkg' dir for black and flake8 (#2413)
* Chnage the isort profile to black, and add pkg dir for black and flake8 Signed-off-by: Ignas Baranauskas <[email protected]> * Fix the formating Signed-off-by: Ignas Baranauskas <[email protected]> * Fix flake8 lint issues Signed-off-by: Ignas Baranauskas <[email protected]> --------- Signed-off-by: Ignas Baranauskas <[email protected]>
1 parent 4964d04 commit 0e2ba6e

File tree

47 files changed

+1122
-727
lines changed

Some content is hidden

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

47 files changed

+1122
-727
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ repos:
1010
hooks:
1111
- id: isort
1212
name: isort
13-
entry: isort --profile google
13+
entry: isort --profile black
1414
- repo: https://github.com/psf/black
1515
rev: 24.2.0
1616
hooks:
1717
- id: black
18-
files: (sdk|examples)/.*
18+
files: (sdk|examples|pkg)/.*
1919
- repo: https://github.com/pycqa/flake8
2020
rev: 7.1.1
2121
hooks:
2222
- id: flake8
23-
files: (sdk|examples)/.*
23+
files: (sdk|examples|pkg)/.*
2424
exclude: |
2525
(?x)^(
2626
.*zz_generated.deepcopy.*|

cmd/earlystopping/medianstop/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import logging
1716
import time
17+
from concurrent import futures
1818

1919
import grpc
2020

cmd/metricscollector/v1beta1/tfevent-metricscollector/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
import argparse
16-
from logging import getLogger
17-
from logging import INFO
18-
from logging import StreamHandler
16+
from logging import INFO, StreamHandler, getLogger
1917

2018
import api_pb2
2119
import api_pb2_grpc

cmd/suggestion/hyperband/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import time
16+
from concurrent import futures
1717

1818
import grpc
1919

cmd/suggestion/hyperopt/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import time
16+
from concurrent import futures
1717

1818
import grpc
1919

cmd/suggestion/nas/darts/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import time
16+
from concurrent import futures
1717

1818
import grpc
1919

cmd/suggestion/nas/enas/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import time
16+
from concurrent import futures
1717

1818
import grpc
1919

cmd/suggestion/optuna/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import time
16+
from concurrent import futures
1717

1818
import grpc
1919

cmd/suggestion/pbt/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import time
16+
from concurrent import futures
1717

1818
import grpc
1919

cmd/suggestion/skopt/v1beta1/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from concurrent import futures
1615
import time
16+
from concurrent import futures
1717

1818
import grpc
1919

0 commit comments

Comments
 (0)