forked from cvat-ai/cvat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maxim Zhiltsov
authored
Sep 9, 2020
1 parent
c653984
commit 8ec3571
Showing
5 changed files
with
473 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[bandit] | ||
# B101 : assert_used | ||
# B102 : exec_used | ||
# B320 : xml_bad_etree | ||
# B404 : import_subprocess | ||
# B406 : import_xml_sax | ||
# B410 : import_lxml | ||
skips: B101,B102,B320,B404,B406,B410 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[run] | ||
branch = true | ||
# relative_files = true # does not work? | ||
|
||
source = | ||
datumaro/ | ||
|
||
omit = | ||
datumaro/__main__.py | ||
datumaro/version.py | ||
tests/* | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if\s+[\w\.()]+\.isEnabledFor\(log\.DEBUG\): | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: | ||
|
||
# don't fail on the code that can be found | ||
ignore_errors = true | ||
|
||
skip_empty = true |
Oops, something went wrong.