Skip to content

Commit 8013375

Browse files
committed
merge friday
2 parents 1c9b4e1 + ba32c2e commit 8013375

File tree

15 files changed

+306
-217
lines changed

15 files changed

+306
-217
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/lib/app/analytics/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,7 @@ def image_consensus(df, image_name, annot_type):
412412
"""
413413

414414
try:
415-
from shapely.geometry import box
416-
from shapely.geometry import Point
417-
from shapely.geometry import Polygon
415+
from shapely.geometry import Point, Polygon, box
418416
except ImportError:
419417
raise ImportError(
420418
"To use superannotate.benchmark or superannotate.consensus functions please install "

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from lib.infrastructure.controller import Controller
2323
from lib.infrastructure.repositories import ConfigRepository
2424

25-
2625
controller = Controller.get_instance()
2726

2827

0 commit comments

Comments
 (0)