class documentation

A strict name checker only allowing ASCII. Note: This check only checks Names, so it ignores the content of docstrings and comments!

Method visit_assignname Check module level assigned names.
Method visit_call Check if the used keyword args are correct.
Method visit_classdef Undocumented
Method visit_functiondef Undocumented
Method visit_global Undocumented
Method visit_import Undocumented
Method visit_importfrom Undocumented
Method visit_module Undocumented
Class Variable msgs Undocumented
Class Variable name Name of the provider.
Method _check_module_import Undocumented
Method _check_name Check whether a name is using non-ASCII characters.

Inherited from BaseChecker:

Method __eq__ Permit to assert Checkers are equal.
Method __gt__ Sorting of checkers.
Method __hash__ Make Checker hashable.
Method __init__ Checker instances should have the linter as argument.
Method __repr__ Undocumented
Method __str__ This might be incomplete because multiple classes inheriting BaseChecker can have the same name.
Method add_message Undocumented
Method check_consistency Check the consistency of msgid.
Method close Called after visiting project (i.e set of modules).
Method create_message_definition_from_tuple Undocumented
Method get_full_documentation Undocumented
Method get_map_data Undocumented
Method get_message_definition Undocumented
Method open Called before visiting project (i.e. set of modules).
Method reduce_map_data Undocumented
Class Variable enabled Undocumented
Class Variable options Options provided by this provider.
Class Variable reports Undocumented
Instance Variable linter Undocumented
Property messages Undocumented

Inherited from _ArgumentsProvider (via BaseChecker):

Method get_option_def DEPRECATED: Return the dictionary defining an option given its name.
Method level.setter Undocumented
Method load_defaults DEPRECATED: Initialize the provider using default values.
Method option_attrname DEPRECATED: Get the config attribute corresponding to opt.
Method option_value DEPRECATED: Get the current value for the given option.
Method options_and_values DEPRECATED.
Method options_by_section DEPRECATED: Return an iterator on options grouped by section.
Method set_option DEPRECATED: Method called to set an option (registered in the options list).
Class Variable option_groups_descs Option groups of this provider and their descriptions.
Property config Undocumented
Property level Undocumented
Instance Variable _arguments_manager The manager that will parse and register any options provided.
Instance Variable _level Undocumented
@utils.only_required_for_messages('non-ascii-name')
def visit_assignname(self, node: nodes.AssignName): (source)

Check module level assigned names.

@utils.only_required_for_messages('non-ascii-name')
def visit_call(self, node: nodes.Call): (source)

Check if the used keyword args are correct.

@utils.only_required_for_messages('non-ascii-name')
def visit_classdef(self, node: nodes.ClassDef): (source)

Undocumented

@utils.only_required_for_messages('non-ascii-name')
def visit_functiondef(self, node: nodes.FunctionDef|nodes.AsyncFunctionDef): (source)

Undocumented

@utils.only_required_for_messages('non-ascii-name')
def visit_global(self, node: nodes.Global): (source)

Undocumented

@utils.only_required_for_messages('non-ascii-name', 'non-ascii-module-import')
def visit_import(self, node: nodes.Import): (source)

Undocumented

@utils.only_required_for_messages('non-ascii-name', 'non-ascii-module-import')
def visit_importfrom(self, node: nodes.ImportFrom): (source)

Undocumented

@utils.only_required_for_messages('non-ascii-name', 'non-ascii-file-name')
def visit_module(self, node: nodes.Module): (source)

Undocumented

Name of the provider.

def _check_module_import(self, node: nodes.ImportFrom|nodes.Import): (source)

Undocumented

def _check_name(self, node_type: str, name: str|None, node: nodes.NodeNG): (source)

Check whether a name is using non-ASCII characters.