Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyCQA/flake8
/ functions
Functions
526 in github.com/PyCQA/flake8
⨍
Functions
526
◇
Types & classes
51
↳
Endpoints
7
↓ 1 callers
Function
_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 callers
Function
_parse_option
( cfg: configparser.RawConfigParser, cfg_opt_name: str, opt: str | None, )
src/flake8/plugins/finder.py:108
↓ 1 callers
Function
_plugin
(pkg, version, ep_name)
tests/unit/test_debug.py:11
↓ 1 callers
Function
_plugin
(name, cls)
tests/unit/plugins/reporter_test.py:22
↓ 1 callers
Method
_process_statistics
(self)
src/flake8/checker.py:124
↓ 1 callers
Function
_reset
()
src/flake8/utils.py:104
↓ 1 callers
Method
_run
(self, argv: Sequence[str])
src/flake8/main/application.py:185
↓ 1 callers
Function
_select_ignore
( *, option: list[str] | None, default: tuple[str, ...], extended_default: list[str], exte
src/flake8/style_guide.py:54
↓ 1 callers
Function
_stat_key
(s: str)
src/flake8/options/config.py:16
↓ 1 callers
Function
_tokenize_files_to_codes_mapping
(value: str)
src/flake8/utils.py:61
↓ 1 callers
Function
_try_initialize_processpool
Return a new process pool instance if we are able to create one.
src/flake8/checker.py:547
↓ 1 callers
Function
_unexpected_token
()
src/flake8/utils.py:113
↓ 1 callers
Method
after_init
Initialize the formatter further.
src/flake8/formatting/base.py:57
↓ 1 callers
Method
beginning
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 callers
Method
build_logical_line
Build a logical line from the current tokens list.
src/flake8/processor.py:242
↓ 1 callers
Method
build_logical_line_tokens
Build the mapping, comments, and logical line lists.
src/flake8/processor.py:192
↓ 1 callers
Method
check_physical_eol
Run physical checks if and only if it is at the end of the line.
src/flake8/checker.py:513
↓ 1 callers
Method
delete_first_token
Delete the first token in the list of tokens.
src/flake8/processor.py:156
↓ 1 callers
Method
error_codes
Return all unique error codes stored. :returns: Sorted list of error codes.
src/flake8/statistics.py:17
↓ 1 callers
Method
excluded
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 callers
Function
expand_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 callers
Method
extend_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 callers
Function
find_offset
Find the offset tuple for a single offset.
src/flake8/checker.py:563
↓ 1 callers
Method
finished
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 callers
Function
fnmatch
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 callers
Method
fstring_start
Signal the beginning of an fstring.
src/flake8/processor.py:126
↓ 1 callers
Method
get_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 callers
Method
handle_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 callers
Method
handle_newline
Handle the logic when encountering a newline token.
src/flake8/checker.py:500
↓ 1 callers
Method
initialize
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 callers
Method
input_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 callers
Method
make_decision
Decide if code should be ignored or selected.
src/flake8/style_guide.py:139
↓ 1 callers
Function
mutate_string
Replace contents with 'xxx' to prevent syntax matching. >>> mutate_string('"abc"') '"xxx"' >>> mutate_string("'''abc'''") "'''xxx'''"
src/flake8/processor.py:435
↓ 1 callers
Method
next_line
Get the next line from the list.
src/flake8/processor.py:322
↓ 1 callers
Method
normalize
Normalize the value based on the option configuration.
src/flake8/options/manager.py:189
↓ 1 callers
Function
normalize_path
Normalize a single-path. :returns: The normalized path.
src/flake8/utils.py:164
↓ 1 callers
Function
options
Generate argparse.Namespace for our Application.
tests/unit/test_application.py:11
↓ 1 callers
Function
options_from
Generate a Values instances with our kwargs.
tests/unit/conftest.py:9
↓ 1 callers
Method
populate_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 callers
Function
predicate
(pth)
tests/unit/test_discover_files.py:90
↓ 1 callers
Method
process_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 callers
Method
read_lines
Read the lines for this file checker.
src/flake8/processor.py:332
↓ 1 callers
Method
read_lines_from_filename
Read the lines for a file.
src/flake8/processor.py:341
↓ 1 callers
Method
read_lines_from_stdin
Read the lines from standard in.
src/flake8/processor.py:352
↓ 1 callers
Method
report
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 callers
Method
report_benchmarks
Aggregate, calculate, and report benchmarks for this run.
src/flake8/main/application.py:112
↓ 1 callers
Method
report_statistics
Aggregate and report statistics from this run.
src/flake8/main/application.py:149
↓ 1 callers
Method
reset_blank_before
Reset the blank_before attribute to zero.
src/flake8/processor.py:152
↓ 1 callers
Method
run
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 callers
Method
run
Run the plugin.
src/flake8/plugins/pyflakes.py:85
↓ 1 callers
Method
run_parallel
Run the checkers in parallel.
src/flake8/checker.py:192
↓ 1 callers
Method
should_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 callers
Method
show_benchmarks
Format and print the benchmarks.
src/flake8/formatting/base.py:125
↓ 1 callers
Method
show_source
Do not include the source code.
src/flake8/formatting/default.py:90
↓ 1 callers
Method
show_source
Do not print the source.
src/flake8/formatting/default.py:108
↓ 1 callers
Method
show_statistics
Format and print the statistics.
src/flake8/formatting/base.py:116
↓ 1 callers
Function
stage1_arg_parser
Register the preliminary options on our OptionManager. The preliminary options include: - ``-v``/``--verbose`` - ``--output-file`` -
src/flake8/main/options.py:10
↓ 1 callers
Function
stdin_get_value
Get and cache it so plugins can use it.
src/flake8/utils.py:186
↓ 1 callers
Method
strip_utf_bom
Strip the UTF bom from the lines of the file.
src/flake8/processor.py:376
↓ 1 callers
Method
tstring_start
Signal the beginning of an tstring.
src/flake8/processor.py:130
↓ 1 callers
Method
update_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
← previous
next →
101–200 of 526, ranked by callers