MCPcopy Create free account

hub / github.com/PyCQA/flake8 / functions

Functions526 in github.com/PyCQA/flake8

↓ 1 callersFunction_parameters_for
Return the parameters for the plugin. This will inspect the plugin and return either the function parameters if the plugin is a function or t
src/flake8/plugins/finder.py:262
↓ 1 callersFunction_parse_option
( cfg: configparser.RawConfigParser, cfg_opt_name: str, opt: str | None, )
src/flake8/plugins/finder.py:108
↓ 1 callersFunction_plugin
(pkg, version, ep_name)
tests/unit/test_debug.py:11
↓ 1 callersFunction_plugin
(name, cls)
tests/unit/plugins/reporter_test.py:22
↓ 1 callersMethod_process_statistics
(self)
src/flake8/checker.py:124
↓ 1 callersFunction_reset
()
src/flake8/utils.py:104
↓ 1 callersMethod_run
(self, argv: Sequence[str])
src/flake8/main/application.py:185
↓ 1 callersFunction_select_ignore
( *, option: list[str] | None, default: tuple[str, ...], extended_default: list[str], exte
src/flake8/style_guide.py:54
↓ 1 callersFunction_stat_key
(s: str)
src/flake8/options/config.py:16
↓ 1 callersFunction_tokenize_files_to_codes_mapping
(value: str)
src/flake8/utils.py:61
↓ 1 callersFunction_try_initialize_processpool
Return a new process pool instance if we are able to create one.
src/flake8/checker.py:547
↓ 1 callersFunction_unexpected_token
()
src/flake8/utils.py:113
↓ 1 callersMethodafter_init
Initialize the formatter further.
src/flake8/formatting/base.py:57
↓ 1 callersMethodbeginning
Notify the formatter that we're starting to process a file. :param filename: The name of the file that Flake8 is beginning to rep
src/flake8/formatting/base.py:60
↓ 1 callersMethodbuild_logical_line
Build a logical line from the current tokens list.
src/flake8/processor.py:242
↓ 1 callersMethodbuild_logical_line_tokens
Build the mapping, comments, and logical line lists.
src/flake8/processor.py:192
↓ 1 callersMethodcheck_physical_eol
Run physical checks if and only if it is at the end of the line.
src/flake8/checker.py:513
↓ 1 callersMethoddelete_first_token
Delete the first token in the list of tokens.
src/flake8/processor.py:156
↓ 1 callersMethoderror_codes
Return all unique error codes stored. :returns: Sorted list of error codes.
src/flake8/statistics.py:17
↓ 1 callersMethodexcluded
Determine if a file is excluded. :param filename: Path to the file to check if it is excluded. :param parent:
src/flake8/api/legacy.py:120
↓ 1 callersFunctionexpand_indent
r"""Return the amount of indentation. Tabs are expanded to the next multiple of 8. >>> expand_indent(' ') 4 >>> expand_indent('\t
src/flake8/processor.py:415
↓ 1 callersMethodextend_default_select
Extend the default select list with the error codes provided. :param error_codes: List of strings that are the error/warning code
src/flake8/options/manager.py:302
↓ 1 callersFunctionfind_offset
Find the offset tuple for a single offset.
src/flake8/checker.py:563
↓ 1 callersMethodfinished
Notify the formatter that we've finished processing a file. :param filename: The name of the file that Flake8 has finished report
src/flake8/formatting/base.py:68
↓ 1 callersFunctionfnmatch
Wrap :func:`fnmatch.fnmatch` to add some functionality. :param filename: Name of the file we're trying to match. :param patterns:
src/flake8/utils.py:214
↓ 1 callersMethodfstring_start
Signal the beginning of an fstring.
src/flake8/processor.py:126
↓ 1 callersMethodget_statistics
Get the list of occurrences of a violation. :returns: List of occurrences of a violation formatted as: {Count} {Error
src/flake8/api/legacy.py:54
↓ 1 callersMethodhandle_error
Handle an error reported by a check. :param code: The error code found, e.g., E123. :param filename: The file
src/flake8/style_guide.py:260
↓ 1 callersMethodhandle_newline
Handle the logic when encountering a newline token.
src/flake8/checker.py:500
↓ 1 callersMethodinitialize
Initialize the application to be run. This finds the plugins, registers their options, and parses the command-line arguments.
src/flake8/main/application.py:159
↓ 1 callersMethodinput_file
Run collected checks on a single file. This will check the file passed in and return a :class:`Report` instance. :param file
src/flake8/api/legacy.py:167
↓ 1 callersMethodmake_decision
Decide if code should be ignored or selected.
src/flake8/style_guide.py:139
↓ 1 callersFunctionmutate_string
Replace contents with 'xxx' to prevent syntax matching. >>> mutate_string('"abc"') '"xxx"' >>> mutate_string("'''abc'''") "'''xxx'''"
src/flake8/processor.py:435
↓ 1 callersMethodnext_line
Get the next line from the list.
src/flake8/processor.py:322
↓ 1 callersMethodnormalize
Normalize the value based on the option configuration.
src/flake8/options/manager.py:189
↓ 1 callersFunctionnormalize_path
Normalize a single-path. :returns: The normalized path.
src/flake8/utils.py:164
↓ 1 callersFunctionoptions
Generate argparse.Namespace for our Application.
tests/unit/test_application.py:11
↓ 1 callersFunctionoptions_from
Generate a Values instances with our kwargs.
tests/unit/conftest.py:9
↓ 1 callersMethodpopulate_style_guides_with
Generate style guides from the per-file-ignores option. :param options: The original options parsed from the CLI and config file.
src/flake8/style_guide.py:230
↓ 1 callersFunctionpredicate
(pth)
tests/unit/test_discover_files.py:90
↓ 1 callersMethodprocess_tokens
Process tokens and trigger checks. Instead of using this directly, you should use :meth:`flake8.checker.FileChecker.run_checks`.
src/flake8/checker.py:455
↓ 1 callersMethodread_lines
Read the lines for this file checker.
src/flake8/processor.py:332
↓ 1 callersMethodread_lines_from_filename
Read the lines for a file.
src/flake8/processor.py:341
↓ 1 callersMethodread_lines_from_stdin
Read the lines from standard in.
src/flake8/processor.py:352
↓ 1 callersMethodreport
Report all of the errors found in the managed file checkers. This iterates over each of the checkers and reports the errors sorted by
src/flake8/checker.py:174
↓ 1 callersMethodreport_benchmarks
Aggregate, calculate, and report benchmarks for this run.
src/flake8/main/application.py:112
↓ 1 callersMethodreport_statistics
Aggregate and report statistics from this run.
src/flake8/main/application.py:149
↓ 1 callersMethodreset_blank_before
Reset the blank_before attribute to zero.
src/flake8/processor.py:152
↓ 1 callersMethodrun
Run all the checkers. This will intelligently decide whether to run the checks in parallel or whether to run them in serial.
src/flake8/checker.py:223
↓ 1 callersMethodrun
Run the plugin.
src/flake8/plugins/pyflakes.py:85
↓ 1 callersMethodrun_parallel
Run the checkers in parallel.
src/flake8/checker.py:192
↓ 1 callersMethodshould_report_error
Determine if the error code should be reported or ignored. This method only cares about the select and ignore rules as specified by t
src/flake8/style_guide.py:361
↓ 1 callersMethodshow_benchmarks
Format and print the benchmarks.
src/flake8/formatting/base.py:125
↓ 1 callersMethodshow_source
Do not include the source code.
src/flake8/formatting/default.py:90
↓ 1 callersMethodshow_source
Do not print the source.
src/flake8/formatting/default.py:108
↓ 1 callersMethodshow_statistics
Format and print the statistics.
src/flake8/formatting/base.py:116
↓ 1 callersFunctionstage1_arg_parser
Register the preliminary options on our OptionManager. The preliminary options include: - ``-v``/``--verbose`` - ``--output-file`` -
src/flake8/main/options.py:10
↓ 1 callersFunctionstdin_get_value
Get and cache it so plugins can use it.
src/flake8/utils.py:186
↓ 1 callersMethodstrip_utf_bom
Strip the UTF bom from the lines of the file.
src/flake8/processor.py:376
↓ 1 callersMethodtstring_start
Signal the beginning of an tstring.
src/flake8/processor.py:130
↓ 1 callersMethodupdate_state
Update the indent level based on the logical line mapping.
src/flake8/processor.py:164
Method__init__
Initialize our Manager instance.
src/flake8/checker.py:103
Method__init__
Initialize our file checker.
src/flake8/checker.py:267
Method__init__
Initialize the engine.
src/flake8/style_guide.py:76
Method__init__
Initialize our StyleGuide. .. todo:: Add parameter documentation.
src/flake8/style_guide.py:205
Method__init__
Initialize our StyleGuide. .. todo:: Add parameter documentation.
src/flake8/style_guide.py:298
Method__init__
Initialize the underlying dictionary for our statistics.
src/flake8/statistics.py:13
Method__init__
Initialize our Statistic.
src/flake8/statistics.py:110
Method__init__
Pop certain keyword arguments for initialization.
src/flake8/exceptions.py:41
Method__init__
Utilize keyword arguments for message generation.
src/flake8/exceptions.py:60
Method__init__
Initialize our file processor. :param filename: Name of the file to process
src/flake8/processor.py:62
Method__init__
Initialize our application.
src/flake8/main/application.py:28
Method__init__
Parse and validate the --jobs argument. :param arg: The argument passed by argparse for validation
src/flake8/main/options.py:84
Method__init__
Initialize an Option instance. The following are all passed directly through to argparse. :param short_option_name: The
src/flake8/options/manager.py:44
Method__init__
Initialize an instance of an OptionManager.
src/flake8/options/manager.py:210
Method__init__
Initialize the Report for the user. .. warning:: This should not be instantiated by users.
src/flake8/api/legacy.py:39
Method__init__
Initialize our StyleGuide.
src/flake8/api/legacy.py:83
Method__init__
Initialize the PyFlakes plugin with an AST tree and filename.
src/flake8/plugins/pyflakes.py:76
Method__init__
Initialize with the options parsed from config and cli. This also calls a hook, :meth:`after_init`, so subclasses do not need to call
src/flake8/formatting/base.py:36
Method__init__
Construct a dummy object to provide mandatory parameter.
tests/integration/test_checker.py:23
Method__init__
Construct an instance of test plugin.
tests/integration/test_plugins.py:20
Method__init__
Construct an instance of test plugin.
tests/integration/test_plugins.py:35
Method__init__
(self, tree)
tests/integration/test_plugins.py:117
Method__init__
Construct an instance of test plugin.
tests/integration/subdir/aplugin.py:8
Method__init__
(self, tree)
tests/unit/plugins/finder_test.py:643
Method__init__
(self, tree)
example-plugin/src/flake8_example_plugin/off_by_default.py:10
Method__init__
(self, tree)
example-plugin/src/flake8_example_plugin/on_by_default.py:8
Method__repr__
Provide helpful debugging representation.
src/flake8/checker.py:292
Method__repr__
Make it easier to debug which StyleGuide we're using.
src/flake8/style_guide.py:318
Method__repr__
Representation for debugging.
src/flake8/main/options.py:100
Method__repr__
(self)
src/flake8/options/manager.py:181
Method__str__
Format our exception message.
src/flake8/exceptions.py:28
Method__str__
Format our exception message.
src/flake8/exceptions.py:47
Method__str__
Format our exception message.
src/flake8/exceptions.py:72
Method__str__
Format our JobsArgument class.
src/flake8/main/options.py:104
Function_flake8_normalize
( value: str, *args: str, comma_separated_list: bool = False, normalize_paths: bool = False, )
src/flake8/options/manager.py:22
Function_mp_init
(argv: Sequence[str])
src/flake8/checker.py:64
Function_mp_run
(filename: str)
src/flake8/checker.py:76
Function_noop
(path)
tests/unit/test_discover_files.py:22
Method_noqa_line_mapping
Map from line number to the line we'll search for `noqa` in.
src/flake8/processor.py:287
← previousnext →101–200 of 526, ranked by callers