Classes | Namespaces | Functions | Variables
pep8.py File Reference

Go to the source code of this file.

Classes

class  roslint.pep8.BaseReport
 
class  roslint.pep8.Checker
 
class  roslint.pep8.DiffReport
 
class  roslint.pep8.FileReport
 
class  roslint.pep8.StandardReport
 
class  roslint.pep8.StyleGuide
 

Namespaces

 roslint.pep8
 

Functions

def roslint.pep8._is_eol_token (token)
 
def roslint.pep8._is_eol_token (token, _eol_token=_is_eol_token)
 
def roslint.pep8._main ()
 
def roslint.pep8.blank_lines (logical_line, blank_lines, indent_level, line_number, blank_before, previous_logical, previous_indent_level)
 Plugins (check functions) for logical lines. More...
 
def roslint.pep8.break_around_binary_operator (logical_line, tokens)
 
def roslint.pep8.comparison_negative (logical_line)
 
def roslint.pep8.comparison_to_singleton (logical_line, noqa)
 
def roslint.pep8.comparison_type (logical_line, noqa)
 
def roslint.pep8.compound_statements (logical_line)
 
def roslint.pep8.continued_indentation (logical_line, tokens, indent_level, hang_closing, indent_char, noqa, verbose)
 
def roslint.pep8.expand_indent (line)
 
def roslint.pep8.explicit_line_join (logical_line, tokens)
 
def roslint.pep8.extraneous_whitespace (logical_line)
 
def roslint.pep8.filename_match (filename, patterns, default=True)
 
def roslint.pep8.get_parser (prog='pep8', version=__version__)
 
def roslint.pep8.imports_on_separate_lines (logical_line)
 
def roslint.pep8.indentation (logical_line, previous_logical, indent_char, indent_level, previous_indent_level)
 
def roslint.pep8.init_checks_registry ()
 
def roslint.pep8.maximum_line_length (physical_line, max_line_length, multiline)
 
def roslint.pep8.missing_whitespace (logical_line)
 
def roslint.pep8.missing_whitespace_around_operator (logical_line, tokens)
 
def roslint.pep8.module_imports_on_top_of_file (logical_line, indent_level, checker_state, noqa)
 
def roslint.pep8.mute_string (text)
 
def roslint.pep8.normalize_paths (value, parent=os.curdir)
 
def roslint.pep8.parse_udiff (diff, patterns=None, parent='.')
 
def roslint.pep8.process_options (arglist=None, parse_argv=False, config_file=None, parser=None)
 
def roslint.pep8.python_3000_backticks (logical_line)
 
def roslint.pep8.python_3000_has_key (logical_line, noqa)
 
def roslint.pep8.python_3000_not_equal (logical_line)
 
def roslint.pep8.python_3000_raise_comma (logical_line)
 
def roslint.pep8.read_config (options, args, arglist, parser)
 
def roslint.pep8.readlines (filename)
 Helper functions. More...
 
def roslint.pep8.register_check (check, codes=None)
 
def roslint.pep8.stdin_get_value ()
 
def roslint.pep8.tabs_obsolete (physical_line)
 
def roslint.pep8.tabs_or_spaces (physical_line, indent_char)
 Plugins (check functions) for physical lines. More...
 
def roslint.pep8.trailing_blank_lines (physical_line, lines, line_number, total_lines)
 
def roslint.pep8.trailing_whitespace (physical_line)
 
def roslint.pep8.whitespace_around_comma (logical_line)
 
def roslint.pep8.whitespace_around_keywords (logical_line)
 
def roslint.pep8.whitespace_around_named_parameter_equals (logical_line, tokens)
 
def roslint.pep8.whitespace_around_operator (logical_line)
 
def roslint.pep8.whitespace_before_comment (logical_line, tokens)
 
def roslint.pep8.whitespace_before_parameters (logical_line, tokens)
 

Variables

string roslint.pep8.__version__ = '1.6.2'
 
dictionary roslint.pep8._checks = {'physical_line': {}, 'logical_line': {}, 'tree': {}}
 Framework to run all checks. More...
 
 roslint.pep8.ARITHMETIC_OP = frozenset(['**', '*', '/', '//', '+', '-'])
 
list roslint.pep8.BENCHMARK_KEYS = ['directories', 'files', 'logical lines', 'physical lines']
 
string roslint.pep8.COMMENT_WITH_NL = '#\n'
 
 roslint.pep8.COMPARE_NEGATIVE_REGEX = re.compile(r'\b(not)\s+[^][)(}{ ]+\s+(in|is)\s')
 
 roslint.pep8.COMPARE_SINGLETON_REGEX
 
 roslint.pep8.COMPARE_TYPE_REGEX
 
string roslint.pep8.DEFAULT_EXCLUDE = '.svn,CVS,.bzr,.hg,.git,__pycache__,.tox'
 
string roslint.pep8.DEFAULT_IGNORE = 'E121,E123,E126,E226,E24,E704'
 
 roslint.pep8.DOCSTRING_REGEX = re.compile(r'u?r?["\']')
 
 roslint.pep8.ERRORCODE_REGEX = re.compile(r'\b[A-Z]\d{3}\b')
 
 roslint.pep8.EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
 
 roslint.pep8.HUNK_REGEX = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$')
 
 roslint.pep8.INDENT_REGEX = re.compile(r'([ \t]*)')
 
 roslint.pep8.isidentifier = re.compile(r'[a-zA-Z_]\w*$').match
 
 roslint.pep8.KEYWORD_REGEX = re.compile(r'(\s*)\b(?:%s)\b(\s*)' % r'|'.join(KEYWORDS))
 
 roslint.pep8.KEYWORDS = frozenset(keyword.kwlist + ['print'])-SINGLETONS
 
 roslint.pep8.LAMBDA_REGEX = re.compile(r'\blambda\b')
 
int roslint.pep8.MAX_LINE_LENGTH = 79
 
 roslint.pep8.NEWLINE = frozenset([tokenize.NL, tokenize.NEWLINE])
 
 roslint.pep8.noqa = re.compile(r'# no(?:qa|pep8)\b', re.I).search
 
 roslint.pep8.OPERATOR_REGEX = re.compile(r'(?:[^,\s])(\s*)(?:[-+*/|!<=>%&^]+)(\s*)')
 
tuple roslint.pep8.PROJECT_CONFIG = ('setup.cfg', 'tox.ini', '.pep8')
 
int roslint.pep8.PyCF_ONLY_AST = 1024
 
 roslint.pep8.RAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,')
 
dictionary roslint.pep8.REPORT_FORMAT
 
 roslint.pep8.RERAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,.*,\s*\w+\s*$')
 
 roslint.pep8.SINGLETONS = frozenset(['False', 'None', 'True'])
 
 roslint.pep8.SKIP_COMMENTS = SKIP_TOKENS.union([tokenize.COMMENT, tokenize.ERRORTOKEN])
 
 roslint.pep8.SKIP_TOKENS = NEWLINE.union([tokenize.INDENT, tokenize.DEDENT])
 
 roslint.pep8.stdin_get_value = sys.stdin.read
 
 roslint.pep8.TESTSUITE_PATH = os.path.join(os.path.dirname(__file__), 'testsuite')
 
 roslint.pep8.UNARY_OPERATORS = frozenset(['>>', '**', '*', '+', '-'])
 
 roslint.pep8.USER_CONFIG = os.path.expanduser(r'~\.pep8')
 
 roslint.pep8.WHITESPACE = frozenset(' \t')
 
 roslint.pep8.WHITESPACE_AFTER_COMMA_REGEX = re.compile(r'[,;:]\s*(?: |\t)')
 
 roslint.pep8.WS_NEEDED_OPERATORS
 
 roslint.pep8.WS_OPTIONAL_OPERATORS = ARITHMETIC_OP.union(['^', '&', '|', '<<', '>>', '%'])
 


roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Wed May 1 2019 02:23:59