docstrings++

This commit is contained in:
Florian Bruhin 2014-01-29 04:07:27 +01:00
parent 06ad500964
commit 201e8f7c46
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,6 @@
"""All command classes. These are automatically propagated from commands.utils
"""All command classes.
These are automatically propagated from commands.utils
via inspect.
A command class can set the following properties:

View File

@ -1,14 +1,25 @@
""" Run different codecheckers over a codebase.
Runs flake8, pylint and a CRLF-checker by default.
"""
import sys
import subprocess
import os
import os.path
from pkg_resources import load_entry_point, DistributionNotFound
from collections import OrderedDict
from pkg_resources import load_entry_point, DistributionNotFound
status = OrderedDict()
testmodule = 'qutebrowser'
def run(name, args=None):
""" Run a checker with optional args.
name -- Name of the checker/binary
args -- Option list of arguments to pass
"""
sys.argv = [name, testmodule]
if args is not None:
sys.argv += args
@ -31,6 +42,7 @@ def run(name, args=None):
print()
def check_crlf():
"""Checks a filetree for CRLFs"""
print("====== CRLF ======")
ret = []
try: