Skip to content

Commit

Permalink
Update codacy (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Zhiltsov authored Sep 9, 2020
1 parent c653984 commit 8ec3571
Show file tree
Hide file tree
Showing 5 changed files with 473 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .bandit
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
34 changes: 34 additions & 0 deletions .coveragerc
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
Loading

0 comments on commit 8ec3571

Please sign in to comment.