diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..5bf3032e4 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,27 @@ +[run] +omit=mlfinlab/tests/* + scripts/* + /opt/conda/* + # Ensure we exclude any files in .local + */.local/* + */Users/* +branch=True + +# This config option is in v4.0a5 only supported on the command line +concurrency=multiprocessing + +[report] +partial_branches=True +show_missing=True +exclude_lines = + pragma: no cover + raise NotImplementedError + @abc.abstractmethod + @abc.abstractproperty + def _dependencies(self): + +[html] +directory=cover + +[xml] + diff --git a/.travis.yml b/.travis.yml index de14df2a3..054acba34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,4 @@ git: script: - python -m unittest discover - pylint mlfinlab --rcfile=.pylintrc -f text - - scripts/coverage \ No newline at end of file + - coverage \ No newline at end of file diff --git a/scripts/coverage b/coverage similarity index 100% rename from scripts/coverage rename to coverage