Skip to content

Commit 9ca5dbe

Browse files
author
Roman Donchenko
authored
Merge pull request #2238 from openvinotoolkit/release
Merge OpenVINO toolkit 2021.3 content into master
2 parents 3386309 + 0ae056c commit 9ca5dbe

File tree

1,449 files changed

+157158
-16558
lines changed

Some content is hidden

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

1,449 files changed

+157158
-16558
lines changed

.flake8

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[flake8]
2+
exclude=
3+
# generic excludes
4+
.git,__pycache__,
5+
# generated files
6+
demos/speech_recognition_demo/python/ctcdecode-numpy/ctcdecode_numpy/impl.py,
7+
models/public/mozilla-deepspeech-0.8.2/mds_convert_utils/memmapped_file_system_pb2.py,
8+
9+
select=
10+
# indentation problems
11+
E10,E11,
12+
# closing bracket does not match indentation of opening brackets line
13+
E123,
14+
# whitespace before '('
15+
E211,
16+
# missing whitespace after ',', ';', or ':'
17+
E231,
18+
# missing whitespace after keyword
19+
E275,
20+
# expected 1 blank line, found 0
21+
E301,
22+
# blank lines found after function decorator
23+
E304,
24+
# the backslash is redundant between brackets
25+
E502,
26+
# statement style issues
27+
E7,
28+
# parse errors
29+
E9,
30+
# pyflakes checks
31+
F4,F5,F6,F7,F8,F9,
32+
# deprecation warnings
33+
W6,
34+
35+
ignore=
36+
# multiple statements on one line (colon/def)
37+
# ignored because putting a statement after a colon is harmless and
38+
# sometimes results in more compact code
39+
E701,E704,

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
# so allow it.
88
*.patch whitespace=-blank-at-eol
99

10-
.git* -omz.package
1110
.editorconfig -omz.package
11+
.flake8 -omz.package
12+
.git* -omz.package
1213
.yamllint -omz.package
1314
/ci/** -omz.package
1415
/demos/build_demos.sh omz.package=l,m
@@ -21,6 +22,7 @@
2122
/ci/requirements-conversion.txt omz.ci.job-for-change.demos omz.ci.job-for-change.models
2223
/ci/requirements-demos.txt omz.ci.job-for-change.demos
2324
/ci/requirements-downloader.txt omz.ci.job-for-change.demos omz.ci.job-for-change.models
25+
/ci/requirements-quantization.txt omz.ci.job-for-change.downloader
2426

2527
/demos/** omz.ci.job-for-change.demos
2628
/demos/**/*.md -omz.ci.job-for-change.demos

.yamllint

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ yaml-files:
1111

1212
ignore: |
1313
demos/thirdparty/
14-
tools/accuracy_checker/.yamllint
14+
tools/accuracy_checker/dataset_definitions.yml
1515
tools/accuracy_checker/configs/
1616

1717
rules:
1818
line-length: disable
1919
braces: enable
2020
brackets: enable
21-
colons: disable
21+
colons:
22+
max-spaces-before: 0
23+
max-spaces-after: -1
2224
commas: enable
2325
comments:
2426
level: warning
@@ -34,7 +36,7 @@ rules:
3436
key-ordering: disable
3537
new-line-at-end-of-file: enable
3638
new-lines: disable
37-
octal-values: disable
39+
octal-values: enable
3840
quoted-strings: disable
3941
trailing-spaces: enable
4042
truthy: disable

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [OpenVINO™ Toolkit](https://01.org/openvinotoolkit) - Open Model Zoo repository
2-
[![Stable release](https://img.shields.io/badge/version-2021.2-green.svg)](https://github.com/openvinotoolkit/open_model_zoo/releases/tag/2021.2)
2+
[![Stable release](https://img.shields.io/badge/version-2021.3-green.svg)](https://github.com/openvinotoolkit/open_model_zoo/releases/tag/2021.3)
33
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/open_model_zoo/community)
44
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)
55

ci/check-basics.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def complain(message):
4949
cwd=OMZ_ROOT,
5050
).stdout.strip()
5151

52+
print('running text checks...', flush=True)
53+
5254
if subprocess.run(['git', '--no-pager', 'diff', '--check', empty_tree_hash, '--'],
5355
cwd=OMZ_ROOT).returncode != 0:
5456
all_passed = False
@@ -135,9 +137,14 @@ def complain(message):
135137
shebang_program.endswith('/env') and shebang_args == 'python'):
136138
complain(f"{path}:1: use 'python3', not 'python'")
137139

140+
print('running yamllint...', flush=True)
138141
if subprocess.run([sys.executable, '-m', 'yamllint', '-s', '.'], cwd=OMZ_ROOT).returncode != 0:
139142
all_passed = False
140143

144+
print('running flake8...', flush=True)
145+
if subprocess.run([sys.executable, '-m', 'flake8', '--config=.flake8'], cwd=OMZ_ROOT).returncode != 0:
146+
all_passed = False
147+
141148
sys.exit(0 if all_passed else 1)
142149

143150

ci/documentation_updater/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ pip install ruamel.yaml
1313

1414
To update description of single model:
1515
```
16-
python documentation_updater.py -d <OMZ dir>/models/public/<model dir> --mode update
16+
python documentation_updater.py -d <omz_dir>/models/public/<model_dir> --mode update
1717
```
1818

1919
To check descriptions of all public models:
2020
```
21-
python documentation_updater.py -d <OMZ dir>/models/public
21+
python documentation_updater.py -d <omz_dir>/models/public
2222
```

ci/documentation_updater/documentation_updater.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import logging
2121
import re
2222
import ruamel.yaml
23-
import shlex
2423

2524
from pathlib import Path
2625
from ruamel.yaml.scalarstring import FoldedScalarString
@@ -29,7 +28,7 @@
2928
MODES = [
3029
'check',
3130
'update'
32-
]
31+
]
3332

3433
LOG_LEVELS = [
3534
'CRITICAL',
@@ -79,7 +78,7 @@ def convert(lines):
7978
result += ' '
8079
result += line.rstrip('\n')
8180
result = re.sub(r"\[(.*?)\]\((.*?)\)", r"\1 <\2>", result) # Links transformation
82-
result = result.replace("`", "\"").replace("\*", "*")
81+
result = result.replace("`", "\"").replace("\\*", "*")
8382
return result.strip()
8483

8584

0 commit comments

Comments
 (0)