Update setup.cfg (#11814)
* Update setup.cfg Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update .pre-commit-config.yaml Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update export.py Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update downloads.py Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update yolo.py Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>pull/11818/head^2
parent
0b3f751a6f
commit
459dd49c02
|
@ -16,7 +16,7 @@ repos:
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: check-yaml
|
# - id: check-yaml
|
||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
- id: double-quote-string-fixer
|
- id: double-quote-string-fixer
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
|
@ -26,7 +26,6 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
name: Upgrade code
|
name: Upgrade code
|
||||||
args: [--py37-plus]
|
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: 5.12.0
|
rev: 5.12.0
|
||||||
|
@ -67,3 +66,8 @@ repos:
|
||||||
# rev: v1.4.0
|
# rev: v1.4.0
|
||||||
# hooks:
|
# hooks:
|
||||||
# - id: yesqa
|
# - id: yesqa
|
||||||
|
|
||||||
|
# - repo: https://github.com/asottile/dead
|
||||||
|
# rev: v1.5.0
|
||||||
|
# hooks:
|
||||||
|
# - id: dead
|
||||||
|
|
|
@ -221,7 +221,7 @@ def export_openvino(file, metadata, half, int8, data, prefix=colorstr('OpenVINO:
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from openvino.runtime import Core
|
from openvino.runtime import Core
|
||||||
|
|
||||||
from utils.dataloaders import create_dataloader, letterbox
|
from utils.dataloaders import create_dataloader
|
||||||
core = Core()
|
core = Core()
|
||||||
onnx_model = core.read_model(f_onnx) # export
|
onnx_model = core.read_model(f_onnx) # export
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ if str(ROOT) not in sys.path:
|
||||||
if platform.system() != 'Windows':
|
if platform.system() != 'Windows':
|
||||||
ROOT = Path(os.path.relpath(ROOT, Path.cwd())) # relative
|
ROOT = Path(os.path.relpath(ROOT, Path.cwd())) # relative
|
||||||
|
|
||||||
from models.common import *
|
from models.common import * # noqa
|
||||||
from models.experimental import *
|
from models.experimental import * # noqa
|
||||||
from utils.autoanchor import check_anchor_order
|
from utils.autoanchor import check_anchor_order
|
||||||
from utils.general import LOGGER, check_version, check_yaml, make_divisible, print_args
|
from utils.general import LOGGER, check_version, check_yaml, make_divisible, print_args
|
||||||
from utils.plots import feature_visualization
|
from utils.plots import feature_visualization
|
||||||
|
|
14
setup.cfg
14
setup.cfg
|
@ -3,7 +3,7 @@
|
||||||
# Local usage: pip install pre-commit, pre-commit run --all-files
|
# Local usage: pip install pre-commit, pre-commit run --all-files
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
license_file = LICENSE
|
license_files = LICENSE
|
||||||
description_file = README.md
|
description_file = README.md
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
|
@ -25,17 +25,19 @@ verbose = 2
|
||||||
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
|
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
|
||||||
format = pylint
|
format = pylint
|
||||||
# see: https://www.flake8rules.com/
|
# see: https://www.flake8rules.com/
|
||||||
ignore = E731,F405,E402,F401,W504,E127,E231,E501,F403
|
ignore = E731,F405,E402,W504,E501
|
||||||
# E731: Do not assign a lambda expression, use a def
|
# E731: Do not assign a lambda expression, use a def
|
||||||
# F405: name may be undefined, or defined from star imports: module
|
# F405: name may be undefined, or defined from star imports: module
|
||||||
# E402: module level import not at top of file
|
# E402: module level import not at top of file
|
||||||
# F401: module imported but unused
|
|
||||||
# W504: line break after binary operator
|
# W504: line break after binary operator
|
||||||
# E127: continuation line over-indented for visual indent
|
|
||||||
# E231: missing whitespace after ‘,’, ‘;’, or ‘:’
|
|
||||||
# E501: line too long
|
# E501: line too long
|
||||||
|
# removed:
|
||||||
|
# F401: module imported but unused
|
||||||
|
# E231: missing whitespace after ‘,’, ‘;’, or ‘:’
|
||||||
|
# E127: continuation line over-indented for visual indent
|
||||||
# F403: ‘from module import *’ used; unable to detect undefined names
|
# F403: ‘from module import *’ used; unable to detect undefined names
|
||||||
|
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
# https://pycqa.github.io/isort/docs/configuration/options.html
|
# https://pycqa.github.io/isort/docs/configuration/options.html
|
||||||
line_length = 120
|
line_length = 120
|
||||||
|
@ -48,7 +50,7 @@ spaces_before_comment = 2
|
||||||
COLUMN_LIMIT = 120
|
COLUMN_LIMIT = 120
|
||||||
COALESCE_BRACKETS = True
|
COALESCE_BRACKETS = True
|
||||||
SPACES_AROUND_POWER_OPERATOR = True
|
SPACES_AROUND_POWER_OPERATOR = True
|
||||||
SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET = False
|
SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET = True
|
||||||
SPLIT_BEFORE_CLOSING_BRACKET = False
|
SPLIT_BEFORE_CLOSING_BRACKET = False
|
||||||
SPLIT_BEFORE_FIRST_ARGUMENT = False
|
SPLIT_BEFORE_FIRST_ARGUMENT = False
|
||||||
# EACH_DICT_ENTRY_ON_SEPARATE_LINE = False
|
# EACH_DICT_ENTRY_ON_SEPARATE_LINE = False
|
||||||
|
|
|
@ -4,7 +4,6 @@ Download utils
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import urllib
|
import urllib
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
Loading…
Reference in New Issue