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
Branches
Tags
No related merge requests found
MANIFEST
dist
build
build/
dist/
htmlcov/
*.pyc
*.swp
.tox
......
......@@ -2,4 +2,4 @@ include LICENSE OWNERS README.rst
include chkcrontab
include chkcrontab_lib.py
include setup.py
recursive-include tests test*
recursive-include tests test* cq.sh
......@@ -66,7 +66,7 @@ class CleanCmd(Command):
# Configure for this project.
suffixes2del = ['MANIFEST', '.pyc', 'chkcrontabc']
dirs2del = ['./build', './dist', './.tox', './.coverage',
'./__pycache__']
'./__pycache__', './htmlcov']
dirs2ign = ['./.git']
# End config.
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