MCPcopy Create free account

hub / github.com/PyCQA/flake8 / functions

Functions68 in github.com/PyCQA/flake8

↓ 5 callersMethodreport
Report an error by storing it in the results list.
src/flake8/checker.py:309
↓ 3 callersMethod_write
Handle logic of whether to use an output file or print().
src/flake8/formatting/base.py:173
↓ 3 callersMethodrun_check
Run the check in a single plugin.
src/flake8/checker.py:330
↓ 3 callersMethodrun_checks
Run checks against the file.
src/flake8/checker.py:482
↓ 2 callersMethod__init__
Initialize our FailedToLoadPlugin exception.
src/flake8/exceptions.py:22
↓ 2 callersFunctionexpand_paths
Expand out ``paths`` from commandline to the lintable files.
src/flake8/discover_files.py:52
↓ 2 callersMethodformat
Format an error reported by Flake8. This method **must** be implemented by subclasses. :param error: This will be an ins
src/flake8/formatting/base.py:101
↓ 2 callersMethodrun_logical_checks
Run all checks expecting a logical line.
src/flake8/checker.py:398
↓ 2 callersMethodrun_physical_checks
Run all checks for a given physical line. A single physical check may return multiple errors.
src/flake8/checker.py:424
↓ 2 callersMethodrun_serial
Run the checkers in serial.
src/flake8/checker.py:212
↓ 2 callersMethodwrite
Write the line either to the output file or stdout. This handles deciding whether to write to a file or print to standard out for sub
src/flake8/formatting/base.py:180
↓ 1 callersFunction_enable
()
src/flake8/formatting/_windows_color.py:11
↓ 1 callersMethod_extract_syntax_information
(exception: Exception)
src/flake8/checker.py:356
↓ 1 callersFunction_filenames_from
Generate filenames from an argument. :param arg: Parameter from the command-line. :param predicate: Predicate to use to filte
src/flake8/discover_files.py:15
↓ 1 callersMethod_handle_results
(self, filename: str, results: Results)
src/flake8/checker.py:160
↓ 1 callersMethod_job_count
(self)
src/flake8/checker.py:130
↓ 1 callersMethod_make_processor
(self)
src/flake8/checker.py:296
↓ 1 callersFunction_mp_prefork
( plugins: Checkers, options: argparse.Namespace, )
src/flake8/checker.py:52
↓ 1 callersMethod_process_statistics
(self)
src/flake8/checker.py:124
↓ 1 callersFunction_try_initialize_processpool
Return a new process pool instance if we are able to create one.
src/flake8/checker.py:547
↓ 1 callersMethodafter_init
Initialize the formatter further.
src/flake8/formatting/base.py:57
↓ 1 callersMethodcheck_files
Run collected checks on the files provided. This will check the files passed in and return a :class:`Report` instance. :para
src/flake8/api/legacy.py:103
↓ 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 callersFunctionfind_offset
Find the offset tuple for a single offset.
src/flake8/checker.py:563
↓ 1 callersMethodhandle_newline
Handle the logic when encountering a newline token.
src/flake8/checker.py:500
↓ 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 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_ast_checks
Run all checks expecting an abstract syntax tree.
src/flake8/checker.py:377
↓ 1 callersMethodrun_parallel
Run the checkers in parallel.
src/flake8/checker.py:192
↓ 1 callersMethodshow_source
Show the physical line generating the error. This also adds an indicator for the particular part of the line that is reported as gene
src/flake8/formatting/base.py:146
Method__init__
Initialize our Manager instance.
src/flake8/checker.py:103
Method__init__
Initialize our file checker.
src/flake8/checker.py:267
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 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 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__
(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__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
Function_mp_init
(argv: Sequence[str])
src/flake8/checker.py:64
Function_mp_run
(filename: str)
src/flake8/checker.py:76
Methodbeginning
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
Functionbool_errcheck
(result, func, args)
src/flake8/formatting/_windows_color.py:23
Functionconfigure_logging
Configure logging for flake8. :param verbosity: How verbose to be in logging information. :param filename: Name of the file t
src/flake8/__init__.py:36
Methodexcluded
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
Methodfinished
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
Methodget_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
Functionget_style_guide
r"""Provision a StyleGuide for use. :param \*\*kwargs: Keyword arguments that provide some options for the StyleGuide. :returns:
src/flake8/api/legacy.py:193
Methodhandle
Handle an error reported by Flake8. This defaults to calling :meth:`format`, :meth:`show_source`, and then :meth:`write`. To extend h
src/flake8/formatting/base.py:86
Methodinit_report
Set up a formatter for this run of Flake8.
src/flake8/api/legacy.py:146
Methodinput_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
Functionis_excluded
(arg: str)
src/flake8/discover_files.py:63
Methodoptions
Return application's options. An instance of :class:`argparse.Namespace` containing parsed options.
src/flake8/api/legacy.py:89
Methodpaths
Return the extra arguments passed as paths.
src/flake8/api/legacy.py:98
Methodreport
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
Methodrun
Do nothing.
example-plugin/src/flake8_example_plugin/off_by_default.py:13
Methodrun
Do nothing.
example-plugin/src/flake8_example_plugin/on_by_default.py:11
Methodshow_benchmarks
Format and print the benchmarks.
src/flake8/formatting/base.py:125
Methodshow_statistics
Format and print the statistics.
src/flake8/formatting/base.py:116
Methodstart
Start checking files. :param paths: Path names to check. This is passed directly to :meth:`~Manager.make_checkers`.
src/flake8/checker.py:241
Methodstart
Prepare the formatter to receive input. This defaults to initializing :attr:`output_fd` if :attr:`filename`
src/flake8/formatting/base.py:76
Methodstop
Stop checking files.
src/flake8/checker.py:259
Methodstop
Clean up after reporting is finished.
src/flake8/formatting/base.py:198
Methodtotal_errors
Return the total number of errors.
src/flake8/api/legacy.py:50