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

Go to the source code of this file.

Classes

class  roslint.pycodestyle.BaseReport
 
class  roslint.pycodestyle.Checker
 Framework to run all checks. More...
 
class  roslint.pycodestyle.DiffReport
 
class  roslint.pycodestyle.FileReport
 
class  roslint.pycodestyle.StandardReport
 
class  roslint.pycodestyle.StyleGuide
 

Namespaces

 roslint.pycodestyle
 

Functions

def roslint.pycodestyle._break_around_binary_operators (tokens)
 
def roslint.pycodestyle._get_parameters (function)
 
def roslint.pycodestyle._is_binary_operator (token_type, text)
 
def roslint.pycodestyle._is_eol_token (token)
 
def roslint.pycodestyle._main ()
 
def roslint.pycodestyle._parse_multi_options (options, split_token=')
 
def roslint.pycodestyle.ambiguous_identifier (logical_line, tokens)
 
def roslint.pycodestyle.bare_except (logical_line, noqa)
 
def roslint.pycodestyle.blank_lines (logical_line, blank_lines, indent_level, line_number, blank_before, previous_logical, previous_unindented_logical_line, previous_indent_level, lines)
 Plugins (check functions) for logical lines. More...
 
def roslint.pycodestyle.break_after_binary_operator (logical_line, tokens)
 
def roslint.pycodestyle.break_before_binary_operator (logical_line, tokens)
 
def roslint.pycodestyle.comparison_negative (logical_line)
 
def roslint.pycodestyle.comparison_to_singleton (logical_line, noqa)
 
def roslint.pycodestyle.comparison_type (logical_line, noqa)
 
def roslint.pycodestyle.compound_statements (logical_line)
 
def roslint.pycodestyle.continued_indentation (logical_line, tokens, indent_level, hang_closing, indent_char, noqa, verbose)
 
def roslint.pycodestyle.expand_indent (line)
 
def roslint.pycodestyle.explicit_line_join (logical_line, tokens)
 
def roslint.pycodestyle.extraneous_whitespace (logical_line)
 
def roslint.pycodestyle.filename_match (filename, patterns, default=True)
 
def roslint.pycodestyle.get_parser (prog='pycodestyle', version=__version__)
 
def roslint.pycodestyle.imports_on_separate_lines (logical_line)
 
def roslint.pycodestyle.indentation (logical_line, previous_logical, indent_char, indent_level, previous_indent_level)
 
def roslint.pycodestyle.lru_cache (maxsize=128)
 
def roslint.pycodestyle.maximum_doc_length (logical_line, max_doc_length, noqa, tokens)
 
def roslint.pycodestyle.maximum_line_length (physical_line, max_line_length, multiline, line_number, noqa)
 
def roslint.pycodestyle.missing_whitespace (logical_line)
 
def roslint.pycodestyle.missing_whitespace_after_import_keyword (logical_line)
 
def roslint.pycodestyle.missing_whitespace_around_operator (logical_line, tokens)
 
def roslint.pycodestyle.module_imports_on_top_of_file (logical_line, indent_level, checker_state, noqa)
 
def roslint.pycodestyle.mute_string (text)
 
def roslint.pycodestyle.normalize_paths (value, parent=os.curdir)
 
def roslint.pycodestyle.parse_udiff (diff, patterns=None, parent='.')
 
def roslint.pycodestyle.process_options (arglist=None, parse_argv=False, config_file=None, parser=None, verbose=None)
 
def roslint.pycodestyle.python_3000_async_await_keywords (logical_line, tokens)
 
def roslint.pycodestyle.python_3000_backticks (logical_line)
 
def roslint.pycodestyle.python_3000_has_key (logical_line, noqa)
 
def roslint.pycodestyle.python_3000_invalid_escape_sequence (logical_line, tokens, noqa)
 
def roslint.pycodestyle.python_3000_not_equal (logical_line)
 
def roslint.pycodestyle.python_3000_raise_comma (logical_line)
 
def roslint.pycodestyle.read_config (options, args, arglist, parser)
 
def roslint.pycodestyle.readlines (filename)
 Helper functions. More...
 
def roslint.pycodestyle.register_check (check, codes=None)
 
def roslint.pycodestyle.stdin_get_value ()
 
def roslint.pycodestyle.tabs_obsolete (physical_line)
 
def roslint.pycodestyle.tabs_or_spaces (physical_line, indent_char)
 Plugins (check functions) for physical lines. More...
 
def roslint.pycodestyle.trailing_blank_lines (physical_line, lines, line_number, total_lines)
 
def roslint.pycodestyle.trailing_whitespace (physical_line)
 
def roslint.pycodestyle.update_counts (s, counts)
 
def roslint.pycodestyle.whitespace_around_comma (logical_line)
 
def roslint.pycodestyle.whitespace_around_keywords (logical_line)
 
def roslint.pycodestyle.whitespace_around_named_parameter_equals (logical_line, tokens)
 
def roslint.pycodestyle.whitespace_around_operator (logical_line)
 
def roslint.pycodestyle.whitespace_before_comment (logical_line, tokens)
 
def roslint.pycodestyle.whitespace_before_parameters (logical_line, tokens)
 

Variables

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


roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Sun Mar 5 2023 03:27:29