Skip to content

Commit 579f8bc

Browse files
Nikita ManovichbsekachevdvkruchininBoris Sekachevzhiltsov-max
authored andcommitted
Squash upto cvat-ai/cvat@0900b52d (Release v2.4.5)
Co-authored-by: Boris Sekachev <[email protected]> Co-authored-by: Boris Sekachev <[email protected]> Co-authored-by: Dmitry Kruchinin <[email protected]> Co-authored-by: Boris Sekachev <[email protected]> Co-authored-by: Nikita Manovich <[email protected]> Co-authored-by: zhiltsov-max <[email protected]> Co-authored-by: Nikita Manovich <[email protected]> Co-authored-by: Snyk bot <[email protected]> Co-authored-by: Dmitry Kalinin <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Kruchinin <[email protected]> Co-authored-by: Andrey Zhavoronkov <[email protected]> Co-authored-by: Andrey Zhavoronkov <[email protected]> Co-authored-by: Maxim Zhiltsov <[email protected]> Co-authored-by: Roman Donchenko <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Maria Khrustaleva <[email protected]> Co-authored-by: Andrey Zhavoronkov <[email protected]> Co-authored-by: Nikita Manovich <[email protected]> Co-authored-by: Timur Osmanov <[email protected]> Co-authored-by: Maya <[email protected]> Co-authored-by: Kirill Sizov <[email protected]> Co-authored-by: TOsmanov <[email protected]> Co-authored-by: Dmitriy Oparin <[email protected]> Co-authored-by: Kirill Sizov <[email protected]> Co-authored-by: Dmitry Kruchinin <[email protected]> Co-authored-by: Anastasia Yasakova <[email protected]> Co-authored-by: Kirill Lakhov <[email protected]> Co-authored-by: Mariia Acoca <[email protected]> Co-authored-by: Ben Hoff <[email protected]> Co-authored-by: Kirill Lakhov <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: Ben Hoff <[email protected]> Co-authored-by: Boris Sekachev <[email protected]> Co-authored-by: DmitriyOparin <[email protected]> Co-authored-by: Dmitry Kalinin <[email protected]> Co-authored-by: Kirill Sizov <[email protected]> Co-authored-by: Kirill Lakhov <[email protected]> Co-authored-by: Maxim Zhiltsov <[email protected]> Co-authored-by: Dmitry Kruchinin <[email protected]> Co-authored-by: Anastasia Yasakova <[email protected]> Co-authored-by: PMazarovich <[email protected]> Co-authored-by: kirill.sizov <[email protected]> Co-authored-by: Andrey Zhavoronkov <[email protected]> Co-authored-by: Artyom Zankevich <[email protected]> Co-authored-by: DmitriySidnev <[email protected]> Co-authored-by: Aleksey Alekseev <[email protected]> Co-authored-by: Artem Filippov <[email protected]> Co-authored-by: Kiwon Jung <[email protected]> Co-authored-by: Nikita Manovich <[email protected]> Co-authored-by: Vitaliy Nishukov <[email protected]> Co-authored-by: manasars <[email protected]> Co-authored-by: Artem Filippov <[email protected]> Co-authored-by: Maksim Markelov <[email protected]> Co-authored-by: Snyk bot <[email protected]> Co-authored-by: amotovx <[email protected]> Co-authored-by: MashaSS <[email protected]> Co-authored-by: Roman Donchenko <[email protected]> Co-authored-by: Chris <[email protected]> Co-authored-by: Dmitry Agapov <[email protected]> Co-authored-by: Dmitry Kalinin <[email protected]> Co-authored-by: Jijoong Kim <[email protected]> Co-authored-by: Johannes222 <[email protected]> Co-authored-by: Mathis Chenuet <[email protected]> Co-authored-by: Nico Galoppo <[email protected]> Co-authored-by: Rodrigo Berriel <[email protected]> Co-authored-by: Rush Tehrani <[email protected]> Co-authored-by: Ryan Hirasaki <[email protected]> Co-authored-by: Sebastian Yonekura <[email protected]> Co-authored-by: Stella Alice Schlotter <[email protected]> Co-authored-by: Vladimir Skubriev <[email protected]> Co-authored-by: Zhiltsov Max <[email protected]> Co-authored-by: a-andre <[email protected]> Co-authored-by: telenachos <[email protected]> Co-authored-by: timurx.osmanov <[email protected]> Co-authored-by: Adam Teuscher <[email protected]> Co-authored-by: Aleksandr Melnikov <[email protected]> Co-authored-by: Ali Jahani <[email protected]> Co-authored-by: Andrey Chernov <[email protected]> Co-authored-by: André Aquilina <[email protected]> Co-authored-by: Anna Petrovicheva <[email protected]> Co-authored-by: Brandon Davis <[email protected]> Co-authored-by: Evgeny Talanin <[email protected]> Co-authored-by: Liron Ilouz <[email protected]> Co-authored-by: Nikita Glazov <[email protected]> Co-authored-by: OlgaP <[email protected]> Co-authored-by: Priya4607 <[email protected]> Co-authored-by: Seungwon Jeong <[email protected]> Co-authored-by: T <[email protected]> Co-authored-by: Varun Singh <[email protected]> Co-authored-by: abdullahrkw <[email protected]> Co-authored-by: syonekura <[email protected]> Co-authored-by: vugia truong <[email protected]> Co-authored-by: zliang7 <[email protected]> Co-authored-by: Роман Донченко <[email protected]> Co-authored-by: Adam Harvey <[email protected]> Co-authored-by: Adam Hultman <[email protected]> Co-authored-by: AetherBreeze <[email protected]> Co-authored-by: Ajay Ramesh <[email protected]> Co-authored-by: Akash Upadhyay <[email protected]> Co-authored-by: Alex <[email protected]> Co-authored-by: Alex Fomenko <[email protected]> Co-authored-by: Alex Newman <[email protected]> Co-authored-by: Alexander Ivkin <[email protected]> Co-authored-by: Alexander Ivkin <[email protected]> Co-authored-by: Ali Jahani <[email protected]> Co-authored-by: Ali Jahani <[email protected]> Co-authored-by: AmitN1212 <[email protected]> Co-authored-by: Andrey Melnikov <[email protected]> Co-authored-by: Anna Petrovicheva <[email protected]> Co-authored-by: Anti <[email protected]> Co-authored-by: Anugraha Sinha <[email protected]> Co-authored-by: Artem <[email protected]> Co-authored-by: Ashish Solanki <[email protected]> Co-authored-by: Ashwin Ramesh <[email protected]> Co-authored-by: AzaelCicero <[email protected]> Co-authored-by: Bassel Mahmoud <[email protected]> Co-authored-by: Boris Sekachev <> Co-authored-by: Cheehan Weereratne <[email protected]> Co-authored-by: Christian <[email protected]> Co-authored-by: Codacy Badger <[email protected]> Co-authored-by: DanVev <[email protected]> Co-authored-by: Dhivya S <[email protected]> Co-authored-by: Diego Cesar <[email protected]> Co-authored-by: Dustin Dorroh <[email protected]> Co-authored-by: Eduardo <[email protected]> Co-authored-by: Eric Grinstein <[email protected]> Co-authored-by: Eric Hofesmann <[email protected]> Co-authored-by: Eric Jiang <[email protected]> Co-authored-by: EvgenyShashkin <[email protected]> Co-authored-by: Felix Obermaier <[email protected]> Co-authored-by: Ferdinand Niedermann <[email protected]> Co-authored-by: Flymax <[email protected]> Co-authored-by: Frederic Tausch <[email protected]> Co-authored-by: Freya Chen <[email protected]> Co-authored-by: G Karthik Raja <[email protected]> Co-authored-by: Gururaj Jeerge <[email protected]> Co-authored-by: Happyzippy <[email protected]> Co-authored-by: Hardik Dava <[email protected]> Co-authored-by: Ilya Kochankov <[email protected]> Co-authored-by: Irina Kovaleva <[email protected]> Co-authored-by: Irrom <[email protected]> Co-authored-by: JADG14 <[email protected]> Co-authored-by: JK-97 <[email protected]> Co-authored-by: Jacek Chrapkowski <[email protected]> Co-authored-by: Jaesun Park <[email protected]> Co-authored-by: Jan Hünnemeyer <[email protected]> Co-authored-by: Jason Wu <[email protected]> Co-authored-by: Josh Bradley <[email protected]> Co-authored-by: Julian Guarin <[email protected]> Co-authored-by: Julian Wagenschütz <[email protected]> Co-authored-by: Kazuki Matsuda <[email protected]> Co-authored-by: Kirill <[email protected]> Co-authored-by: Kirill Plyashkevich <[email protected]> Co-authored-by: Kirpichev Michael <[email protected]> Co-authored-by: KoheiKanagu <[email protected]> Co-authored-by: Krzysztof Begiedza <[email protected]> Co-authored-by: Lei Lei <[email protected]> Co-authored-by: Lisa <[email protected]> Co-authored-by: Lokesh Ravindranathan <[email protected]> Co-authored-by: LukeAI <[email protected]> Co-authored-by: Marci <[email protected]> Co-authored-by: MashaSS <[email protected]> Co-authored-by: Max Wang <[email protected]> Co-authored-by: Maxim Selyuk <[email protected]> Co-authored-by: Maya <[email protected]> Co-authored-by: Michael Fujarski <[email protected]> Co-authored-by: Michael Selasi Dzamesi <[email protected]> Co-authored-by: Mike Peven <[email protected]> Co-authored-by: Mikhail Treskin <[email protected]> Co-authored-by: Mingxin Zheng <[email protected]> Co-authored-by: Mohammad Erfani <[email protected]> Co-authored-by: Naval Chand <[email protected]> Co-authored-by: Padraig X. Lamont <[email protected]> Co-authored-by: Pratik Raj <[email protected]> Co-authored-by: RGring <[email protected]> Co-authored-by: RS Nikhil Krishna <[email protected]> Co-authored-by: Radhika <[email protected]> Co-authored-by: Rafael Kazuo Sato Simião <[email protected]> Co-authored-by: Ram Balachandran <[email protected]> Co-authored-by: Reza Malek <[email protected]> Co-authored-by: Roberto Villalba <[email protected]> Co-authored-by: Saif Khan <[email protected]> Co-authored-by: Santosh Thoduka <[email protected]> Co-authored-by: Satoshi Oikawa <[email protected]> Co-authored-by: Saurabh Khanduja <[email protected]> Co-authored-by: Saurabh Yadav <[email protected]> Co-authored-by: Savan Visalpara <[email protected]> Co-authored-by: Schlotter Benjamin <[email protected]> Co-authored-by: Scotty Kwok <[email protected]> Co-authored-by: Seongmoon Jeong <[email protected]> Co-authored-by: Tadej Svetina <[email protected]> Co-authored-by: Tanvi Anand <[email protected]> Co-authored-by: Thatwho <[email protected]> Co-authored-by: Thomas Albrecht <[email protected]> Co-authored-by: Toni Kunic <[email protected]> Co-authored-by: Tritin Truong <[email protected]> Co-authored-by: Tritin Truong <[email protected]> Co-authored-by: Utkarsh Goel <[email protected]> Co-authored-by: Vincent Richard <[email protected]> Co-authored-by: Vitaliy Nishukov <[email protected]> Co-authored-by: Waqar Shahid Qureshi <[email protected]> Co-authored-by: Wenfei Zhu <[email protected]> Co-authored-by: William Schmitt <[email protected]> Co-authored-by: Xiong Jie <[email protected]> Co-authored-by: Yigit Ozen <[email protected]> Co-authored-by: Young <[email protected]> Co-authored-by: YutaYamazaki <[email protected]> Co-authored-by: Zack Murry <[email protected]> Co-authored-by: Zoya Maslova <[email protected]> Co-authored-by: abaart <[email protected]> Co-authored-by: aschernov <[email protected]> Co-authored-by: azhavoro <[email protected]> Co-authored-by: bseres99 <[email protected]> Co-authored-by: ddx-day <[email protected]> Co-authored-by: gudipudiramanakumar <[email protected]> Co-authored-by: himalayanZephyr <[email protected]> Co-authored-by: hustfyb <[email protected]> Co-authored-by: idriss <[email protected]> Co-authored-by: idriss <[email protected]> Co-authored-by: inpv <[email protected]> Co-authored-by: iwamoto keita <[email protected]> Co-authored-by: jrjbertram <[email protected]> Co-authored-by: kirill-sizov <[email protected]> Co-authored-by: kshramt <[email protected]> Co-authored-by: lizhming <[email protected]> Co-authored-by: magician <[email protected]> Co-authored-by: matthias-p <[email protected]> Co-authored-by: mfurkancoskun <[email protected]> Co-authored-by: ningjunwei2 <[email protected]> Co-authored-by: provider161 <[email protected]> Co-authored-by: qztseng <[email protected]> Co-authored-by: ranko r sredojevic <[email protected]> Co-authored-by: rhee-elten <[email protected]> Co-authored-by: roho <[email protected]> Co-authored-by: se-wo <[email protected]> Co-authored-by: shaojun <[email protected]> Co-authored-by: suzu <[email protected]> Co-authored-by: tdowgiel <[email protected]> Co-authored-by: vainkop <[email protected]> Co-authored-by: vfdev <[email protected]> Co-authored-by: wartek69 <[email protected]> Co-authored-by: xuchen <[email protected]> Co-authored-by: Роман Донченко <[email protected]>
0 parents  commit 579f8bc

File tree

2,027 files changed

+272018
-0
lines changed

Some content is hidden

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

2,027 files changed

+272018
-0
lines changed

Diff for: .bandit

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[bandit]
2+
# B101 : assert_used
3+
# B102 : exec_used
4+
# B320 : xml_bad_etree
5+
# B404 : import_subprocess
6+
# B406 : import_xml_sax
7+
# B410 : import_lxml
8+
skips: B101,B102,B320,B404,B406,B410
9+
exclude: **/tests/**,tests

Diff for: .codacy.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
exclude_paths:
2+
- '**/3rdparty/**'
3+
- '**/engine/js/cvat-core.min.js'
4+
- '**/engine/js/unzip_imgs.js'
5+
- CHANGELOG.md

Diff for: .coveragerc

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[run]
2+
branch = true
3+
# relative_files = true # does not work?
4+
5+
source =
6+
cvat/apps/
7+
cvat-sdk/
8+
cvat-cli/
9+
utils/dataset_manifest
10+
11+
omit =
12+
cvat/settings/*
13+
*/tests/*
14+
*/test_*
15+
*/_test_*
16+
*/migrations/*
17+
18+
[report]
19+
# Regexes for lines to exclude from consideration
20+
exclude_lines =
21+
# Have to re-enable the standard pragma
22+
pragma: no cover
23+
24+
# Don't complain about missing debug-only code:
25+
def __repr__
26+
if\s+[\w\.()]+\.isEnabledFor\(log\.DEBUG\):
27+
28+
# Don't complain if tests don't hit defensive assertion code:
29+
raise AssertionError
30+
raise NotImplementedError
31+
32+
# Don't complain if non-runnable code isn't run:
33+
if 0:
34+
if __name__ == .__main__.:
35+
36+
# don't fail on the code that can be found
37+
ignore_errors = true
38+
39+
skip_empty = true

Diff for: .dockerignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.git
2+
/share
3+
/data
4+
/media
5+
/.env
6+
/.vscode
7+
/db.sqlite3
8+
/keys
9+
**/node_modules
10+
/static

Diff for: .editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# Change these settings to your own preference
10+
indent_style = space
11+
indent_size = 4
12+
13+
# We recommend you to keep these unchanged
14+
end_of_line = lf
15+
charset = utf-8
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true

Diff for: .eslintignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.*/
2+
3rdparty/
3+
node_modules/
4+
dist/
5+
data/
6+
datumaro/
7+
keys/
8+
logs/
9+
static/
10+
templates/
11+
*/webpack.config.js

Diff for: .eslintrc.js

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// Copyright (C) 2018-2022 Intel Corporation
2+
//
3+
// SPDX-License-Identifier: MIT
4+
5+
module.exports = {
6+
root: true,
7+
env: {
8+
node: true,
9+
browser: true,
10+
es2020: true,
11+
},
12+
parserOptions: {
13+
sourceType: 'module',
14+
parser: '@typescript-eslint/parser',
15+
},
16+
ignorePatterns: [
17+
'.eslintrc.js',
18+
'lint-staged.config.js',
19+
'site/themes/**',
20+
],
21+
plugins: ['@typescript-eslint', 'security', 'no-unsanitized', 'import'],
22+
extends: [
23+
'eslint:recommended', 'plugin:security/recommended', 'plugin:no-unsanitized/DOM',
24+
'airbnb-base', 'plugin:import/errors', 'plugin:import/warnings',
25+
'plugin:import/typescript', 'plugin:@typescript-eslint/recommended', 'airbnb-typescript/base',
26+
],
27+
rules: {
28+
// 'header/header': [2, 'line', [{
29+
// pattern: ' {1}Copyright \\(C\\) (?:20\\d{2}-)?2022 Intel Corporation',
30+
// template: ' Copyright (C) 2022 Intel Corporation'
31+
// }, '', ' SPDX-License-Identifier: MIT']],
32+
'no-plusplus': 0,
33+
'no-continue': 0,
34+
'no-console': 0,
35+
'no-param-reassign': ['error', { 'props': false }],
36+
'no-restricted-syntax': [0, { selector: 'ForOfStatement' }],
37+
'no-await-in-loop': 0,
38+
'indent': ['error', 4, { 'SwitchCase': 1 }],
39+
'max-len': ['error', { code: 120, ignoreStrings: true }],
40+
'func-names': 0,
41+
'valid-typeof': 0,
42+
'no-useless-constructor': 0, // sometimes constructor is necessary to generate right documentation in cvat-core
43+
'quotes': ['error', 'single', { "avoidEscape": true }],
44+
'lines-between-class-members': 0,
45+
'class-methods-use-this': 0,
46+
'no-underscore-dangle': ['error', { allowAfterThis: true }],
47+
'max-classes-per-file': 0,
48+
'operator-linebreak': ['error', 'after'],
49+
'newline-per-chained-call': 0,
50+
'global-require': 0,
51+
'arrow-parens': ['error', 'always'],
52+
'security/detect-object-injection': 0, // the rule is relevant for user input data on the node.js environment
53+
'import/order': ['error', {'groups': ['builtin', 'external', 'internal']}],
54+
'import/prefer-default-export': 0, // works incorrect with interfaces
55+
56+
'@typescript-eslint/ban-ts-comment': 0,
57+
'@typescript-eslint/no-explicit-any': 0,
58+
'@typescript-eslint/indent': ['error', 4],
59+
'@typescript-eslint/lines-between-class-members': 0,
60+
'@typescript-eslint/explicit-function-return-type': ['warn', { allowExpressions: true }],
61+
'@typescript-eslint/explicit-module-boundary-types': 'off',
62+
'@typescript-eslint/ban-types': [
63+
'error',
64+
{
65+
types: {
66+
'{}': false, // TODO: try to fix with Record<string, unknown>
67+
object: false, // TODO: try to fix with Record<string, unknown>
68+
Function: false, // TODO: try to fix somehow
69+
},
70+
},
71+
],
72+
},
73+
};

Diff for: .gitattributes

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
* text=auto whitespace=trailing-space,space-before-tab,-indent-with-non-tab,tab-in-indent,tabwidth=4
2+
3+
.git* text export-ignore
4+
5+
*.txt text
6+
*.htm text
7+
*.html text
8+
*.js text
9+
*.py text
10+
*.css text
11+
*.md text
12+
*.yml text
13+
Dockerfile text
14+
LICENSE text
15+
*.conf text
16+
*.mimetypes text
17+
*.sh text eol=lf
18+
19+
*.avi binary
20+
*.bmp binary
21+
*.exr binary
22+
*.ico binary
23+
*.jpeg binary
24+
*.jpg binary
25+
*.png binary
26+
*.gif binary
27+
*.ttf binary
28+
*.pdf binary
29+

Diff for: .github/CODEOWNERS

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
2+
3+
# These owners will be the default owners for everything in
4+
# the repo. Unless a later match takes precedence, they will
5+
# be requested for review when someone opens a pull request.
6+
* @nmanovic
7+
8+
# Order is important; the last matching pattern takes the most
9+
# precedence. When someone opens a pull request that only
10+
# modifies components below, only the list of owners and not
11+
# the global owner(s) will be requested for a review.
12+
13+
# Component: Server
14+
/cvat/ @Marishka17
15+
16+
# Component: CVAT SDK/CLI
17+
/cvat-sdk/ @SpecLad
18+
/cvat/schema.yml @SpecLad
19+
/cvat-cli/ @SpecLad
20+
21+
# Component: Documentation
22+
/site/ @mdacoca
23+
/CHANGELOG.md @mdacoca
24+
/README.md @mdacoca
25+
26+
# Component: CVAT UI
27+
/cvat-ui/ @bsekachev
28+
/cvat-data/ @azhavoro
29+
/cvat-canvas/ @bsekachev
30+
/cvat-canvas3d/ @bsekachev
31+
/cvat-core/ @bsekachev
32+
33+
# Component: Datumaro
34+
/datumaro/ @zhiltsov-max
35+
/cvat/apps/dataset_manager/ @zhiltsov-max
36+
37+
# Advanced components (e.g. analytics)
38+
/components/ @azhavoro
39+
40+
# Component: Tests
41+
/tests/ @yasakova-anastasia
42+
43+
# Component: Serverless functions
44+
/serverless/ @yasakova-anastasia
45+
46+
# Infrastructure
47+
Dockerfile* @azhavoro
48+
docker-compose* @azhavoro
49+
.* @azhavoro
50+
*.conf @azhavoro
51+
*.sh @azhavoro
52+
/cvat_proxy/ @azhavoro
53+
/tests/ @azhavoro
54+
/utils/ @azhavoro
55+
/LICENSE @nmanovic
56+
/.github/ @kirill-sizov
57+
/helm-chart/ @azhavoro

Diff for: .github/ISSUE_TEMPLATE.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
### My actions before raising this issue
2+
- [ ] Read/searched [the docs](https://github.com/cvat-ai/cvat/tree/master#documentation)
3+
- [ ] Searched [past issues](/issues)
4+
5+
<!--- Provide a general summary of the issue in the Title above -->
6+
7+
### Steps to Reproduce (for bugs)
8+
<!--- Provide a link to a live example or an unambiguous set of steps to
9+
reproduce this bug. Include code to reproduce, if relevant -->
10+
1.
11+
1.
12+
1.
13+
1.
14+
15+
### Expected Behaviour
16+
<!--- If you're describing a bug, tell us what should happen. If you're
17+
suggesting a change/improvement, tell us how it should work -->
18+
19+
### Current Behaviour
20+
<!--- If describing a bug, tell us what happens instead of the expected
21+
behavior. If suggesting a change/improvement, explain the difference from
22+
current behavior -->
23+
24+
### Possible Solution
25+
<!--- Not obligatory, but suggest a fix/reason for the bug, or ideas on how
26+
to implement the addition or change -->
27+
28+
### Context
29+
<!--- How has this issue affected you? What are you trying to accomplish?
30+
Providing context helps us come up with a solution that is most useful in
31+
the real world -->
32+
33+
### Your Environment
34+
<!--- Include relevant details about the environment you experienced
35+
the bug in -->
36+
- Git hash commit (`git log -1`):
37+
- Docker version `docker version` (e.g. Docker 17.0.05):
38+
- Are you using Docker Swarm or Kubernetes?
39+
- Operating System and version (e.g. Linux, Windows, MacOS):
40+
- Code example or link to GitHub repo or gist to reproduce problem:
41+
- Other diagnostic information / logs:
42+
<details>
43+
<summary>Logs from `cvat` container</summary>
44+
</details>

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!-- Raise an issue to propose your change (https://github.com/opencv/cvat/issues).
2+
It helps to avoid duplication of efforts from multiple independent contributors.
3+
Discuss your ideas with maintainers to be sure that changes will be approved and merged.
4+
Read the [Contribution guide](https://opencv.github.io/cvat/docs/contributing/). -->
5+
6+
<!-- Provide a general summary of your changes in the Title above -->
7+
8+
### Motivation and context
9+
<!-- Why is this change required? What problem does it solve? If it fixes an open
10+
issue, please link to the issue here. Describe your changes in detail, add
11+
screenshots. -->
12+
13+
### How has this been tested?
14+
<!-- Please describe in detail how you tested your changes.
15+
Include details of your testing environment, and the tests you ran to
16+
see how your change affects other areas of the code, etc. -->
17+
18+
### Checklist
19+
<!-- Go over all the following points, and put an `x` in all the boxes that apply.
20+
If an item isn't applicable for some reason, then ~~explicitly strikethrough~~ the whole
21+
line. If you don't do that, GitHub will show incorrect progress for the pull request.
22+
If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
23+
- [ ] I submit my changes into the `develop` branch
24+
- [ ] I have added a description of my changes into the [CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md) file
25+
- [ ] I have updated the documentation accordingly
26+
- [ ] I have added tests to cover my changes
27+
- [ ] I have linked related issues (see [GitHub docs](
28+
https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
29+
- [ ] I have increased versions of npm packages if it is necessary
30+
([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),
31+
[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),
32+
[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning) and
33+
[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))
34+
35+
### License
36+
37+
- [ ] I submit _my code changes_ under the same [MIT License](
38+
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the project.
39+
Feel free to contact the maintainers if that's a concern.

Diff for: .github/workflows/bandit.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Bandit
2+
on: pull_request
3+
jobs:
4+
Linter:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- id: files
9+
uses: tj-actions/[email protected]
10+
with:
11+
files: |
12+
**/*.py
13+
files_ignore: |
14+
**/cvat-sdk/*
15+
16+
- name: Run checks
17+
run: |
18+
CHANGED_FILES="${{steps.files.outputs.all_changed_files}}"
19+
20+
if [[ ! -z $CHANGED_FILES ]]; then
21+
sudo apt-get --no-install-recommends install -y build-essential curl python3-dev python3-pip python3-venv
22+
python3 -m venv .env
23+
. .env/bin/activate
24+
pip install -U pip wheel setuptools
25+
pip install bandit
26+
mkdir -p bandit_report
27+
28+
echo "Bandit version: "$(bandit --version | head -1)
29+
echo "The files will be checked: "$(echo $CHANGED_FILES)
30+
bandit -a file --ini .bandit -f html -o ./bandit_report/bandit_checks.html $CHANGED_FILES
31+
deactivate
32+
else
33+
echo "No files with the \"py\" extension found"
34+
fi
35+
36+
- name: Upload artifacts
37+
if: failure()
38+
uses: actions/[email protected]
39+
with:
40+
name: bandit_report
41+
path: bandit_report

0 commit comments

Comments
 (0)