Skip to content
Snippets Groups Projects
Commit f03e5a02 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Script to run pylint and converage.

Changes to make it easier to check some various code quality bits.
parent 6b97943a
No related branches found
No related tags found
No related merge requests found
MANIFEST MANIFEST
dist build/
build dist/
htmlcov/
*.pyc *.pyc
*.swp *.swp
.tox .tox
......
...@@ -2,4 +2,4 @@ include LICENSE OWNERS README.rst ...@@ -2,4 +2,4 @@ include LICENSE OWNERS README.rst
include chkcrontab include chkcrontab
include chkcrontab_lib.py include chkcrontab_lib.py
include setup.py include setup.py
recursive-include tests test* recursive-include tests test* cq.sh
...@@ -66,7 +66,7 @@ class CleanCmd(Command): ...@@ -66,7 +66,7 @@ class CleanCmd(Command):
# Configure for this project. # Configure for this project.
suffixes2del = ['MANIFEST', '.pyc', 'chkcrontabc'] suffixes2del = ['MANIFEST', '.pyc', 'chkcrontabc']
dirs2del = ['./build', './dist', './.tox', './.coverage', dirs2del = ['./build', './dist', './.tox', './.coverage',
'./__pycache__'] './__pycache__', './htmlcov']
dirs2ign = ['./.git'] dirs2ign = ['./.git']
# End config. # End config.
doomed = set() doomed = set()
......
#!/bin/sh
# code quality reports
# Lint
for f in chkcrontab chkcrontab_lib.py; do
pylint --rcfile=.pylintrc $f
/bin/echo -n "Completed '$f'. Next..."
read dummy
done
# Coverage
coverage run ./setup.py test
coverage html --include=chkcrontab,chkcrontab_lib.py
open htmlcov/index.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment