Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .devcontainer/devcontainer.json

This file was deleted.

30 changes: 15 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
repos:
- repo: 'https://github.com/asottile/reorder_python_imports'
rev: v2.3.0
hooks:
- id: reorder-python-imports
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
name: 'Reorder Python imports (src, tests)'
args:
- '--application-directories'
- app
- repo: 'https://github.com/python/black'
rev: 19.10b0
hooks:
- id: black
name: Code Formatter (black)
- repo: 'https://gitlab.com/pycqa/flake8'
rev: 3.8.2
hooks:
Expand All @@ -7,7 +21,7 @@ repos:
name: Style Guide Enforcement (flake8)
args:
- '--max-line-length=120'
- --ignore=D100,D203,D405,W503,E203,E501,F841,E126,E712
- --ignore=D100,D203,D405,W503,E203,E501,F841,E126,E712,E123,E131,F821,E121
- repo: 'https://github.com/asottile/pyupgrade'
rev: v2.4.3
hooks:
Expand All @@ -16,26 +30,12 @@ repos:
name: Upgrade syntax for newer versions of the language (pyupgrade)
args:
- '--py37-plus'
- repo: 'https://github.com/asottile/reorder_python_imports'
rev: v2.3.0
hooks:
- id: reorder-python-imports
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
name: 'Reorder Python imports (src, tests)'
args:
- '--application-directories'
- app
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v3.1.0
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: 'https://github.com/python/black'
rev: 19.10b0
hooks:
- id: black
name: Uncompromising Code Formatter (black)
# - repo: 'https://github.com/asottile/dead'
# rev: v1.3.0
# hooks:
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
minversion = 3.0
log_cli=true
python_files = test_*.py
;addopts = -n auto --dist=lo adscope
;addopts = -n auto --dist=loadscope
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ pytest==6.2.4
pytest-xdist==2.3.0
pytest-parallel==0.1.0
pytest-rerunfailures==10.2
sphinx_rtd_theme==1.0.0
sphinx_rtd_theme==1.0.0

3 changes: 2 additions & 1 deletion src/superannotate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@
"format": "SA-PYTHON-SDK - %(levelname)s - %(asctime)s - %(message)s"
},
},
"root": { # root logger
"root": {
# "level": "INFO",
"level": "DEBUG",
"handlers": ["console", "fileHandler"],
},
Expand Down
5 changes: 1 addition & 4 deletions src/superannotate/lib/app/analytics/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from lib.app.exceptions import AppException
from lib.core import DEPRICATED_DOCUMENT_VIDEO_MESSAGE


logger = logging.getLogger("root")


Expand Down Expand Up @@ -412,9 +411,7 @@ def image_consensus(df, image_name, annot_type):
"""

try:
from shapely.geometry import box
from shapely.geometry import Point
from shapely.geometry import Polygon
from shapely.geometry import Point, Polygon, box
except ImportError:
raise ImportError(
"To use superannotate.benchmark or superannotate.consensus functions please install "
Expand Down
2 changes: 0 additions & 2 deletions src/superannotate/lib/app/interface/cli_interface.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import os
import sys
import tempfile
Expand All @@ -23,7 +22,6 @@
from lib.infrastructure.controller import Controller
from lib.infrastructure.repositories import ConfigRepository


controller = Controller.get_instance()


Expand Down
Loading