Commit 4afcb82c authored by Bruno Morgado's avatar Bruno Morgado Committed by Bruno S. Morgado
Browse files

Integrate pylint with pytest and fix code coverage warnings

parent d71f7a63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ dependencies:
  - pytest
  - pytest-cov
  - pylint
  - pytest-pylint
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -3,3 +3,4 @@ setuptools
pytest
pytest-cov
pylint
pytest-pylint
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ source = ska_skeleton

[tool:pytest]
testpaths = tests
addopts = --cov --cov-report xml --cov-report term --cov-report html
addopts = --cov --cov-report xml --cov-report term --cov-report html --pylint --pylint-error-types=EF

# Define `python setup.py build_sphinx`
[build_sphinx]
+2 −0
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-

"""Module init code."""


__version__ = '0.0.0'

+3 −0
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-

"""Define function placeholders and test function examples."""

# FIXME: Replace all the following code with the desired functionality for the package
def example():
    """Example: Define non return function for subsequent test."""
    pass


def testing_example():
    """Example: Define function for subsequent test with specific return value."""
    return 2
Loading