Skip to content

Commit 93395fc

Browse files
committed
Friday-386
1 parent 0e5aa97 commit 93395fc

File tree

22 files changed

+452
-355
lines changed

22 files changed

+452
-355
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
repos:
2+
- repo: 'https://github.com/asottile/reorder_python_imports'
3+
rev: v2.3.0
4+
hooks:
5+
- id: reorder-python-imports
6+
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
7+
name: 'Reorder Python imports (src, tests)'
8+
args:
9+
- '--application-directories'
10+
- app
11+
- repo: 'https://github.com/python/black'
12+
rev: 19.10b0
13+
hooks:
14+
- id: black
15+
name: Code Formatter (black)
216
- repo: 'https://gitlab.com/pycqa/flake8'
317
rev: 3.8.2
418
hooks:
@@ -7,7 +21,7 @@ repos:
721
name: Style Guide Enforcement (flake8)
822
args:
923
- '--max-line-length=120'
10-
- --ignore=D100,D203,D405,W503,E203,E501,F841,E126,E712
24+
- --ignore=D100,D203,D405,W503,E203,E501,F841,E126,E712,E123,E131,F821,E121
1125
- repo: 'https://github.com/asottile/pyupgrade'
1226
rev: v2.4.3
1327
hooks:
@@ -16,26 +30,12 @@ repos:
1630
name: Upgrade syntax for newer versions of the language (pyupgrade)
1731
args:
1832
- '--py37-plus'
19-
- repo: 'https://github.com/asottile/reorder_python_imports'
20-
rev: v2.3.0
21-
hooks:
22-
- id: reorder-python-imports
23-
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
24-
name: 'Reorder Python imports (src, tests)'
25-
args:
26-
- '--application-directories'
27-
- app
2833
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
2934
rev: v3.1.0
3035
hooks:
3136
- id: check-byte-order-marker
3237
- id: trailing-whitespace
3338
- id: end-of-file-fixer
34-
- repo: 'https://github.com/python/black'
35-
rev: 19.10b0
36-
hooks:
37-
- id: black
38-
name: Uncompromising Code Formatter (black)
3939
# - repo: 'https://github.com/asottile/dead'
4040
# rev: v1.3.0
4141
# hooks:

requirements_dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ pytest==6.2.4
44
pytest-xdist==2.3.0
55
pytest-parallel==0.1.0
66
pytest-rerunfailures==10.2
7-
sphinx_rtd_theme==1.0.0
7+
sphinx_rtd_theme==1.0.0
8+

src/superannotate/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@
238238
"format": "SA-PYTHON-SDK - %(levelname)s - %(asctime)s - %(message)s"
239239
},
240240
},
241-
"root": { # root logger
241+
"root": {
242+
# "level": "INFO",
242243
"level": "DEBUG",
243244
"handlers": ["console", "fileHandler"],
244245
},

src/superannotate/lib/app/analytics/common.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from lib.app.exceptions import AppException
88
from lib.core import DEPRICATED_DOCUMENT_VIDEO_MESSAGE
99

10-
1110
logger = logging.getLogger("root")
1211

1312

@@ -412,9 +411,7 @@ def image_consensus(df, image_name, annot_type):
412411
"""
413412

414413
try:
415-
from shapely.geometry import box
416-
from shapely.geometry import Point
417-
from shapely.geometry import Polygon
414+
from shapely.geometry import Point, Polygon, box
418415
except ImportError:
419416
raise ImportError(
420417
"To use superannotate.benchmark or superannotate.consensus functions please install "

src/superannotate/lib/app/interface/cli_interface.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import json
21
import os
32
import sys
43
import tempfile
@@ -23,7 +22,6 @@
2322
from lib.infrastructure.controller import Controller
2423
from lib.infrastructure.repositories import ConfigRepository
2524

26-
2725
controller = Controller.get_instance()
2826

2927

0 commit comments

Comments
 (0)