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
Method
_set_group
(name: str)
src/flake8/options/manager.py:248
Method
_style_guide_for
Find the StyleGuide for the filename in particular.
src/flake8/style_guide.py:246
Method
add_options
Register options for PyFlakes on the Flake8 OptionManager.
src/flake8/plugins/pyflakes.py:100
Method
add_options
Register options.
tests/integration/test_plugins.py:27
Method
after_init
Check for a custom format string.
src/flake8/formatting/default.py:69
Method
after_init
Initialize our set of filenames.
src/flake8/formatting/default.py:86
Method
after_init
Define method to verify operation.
tests/unit/test_base_formatter.py:188
Function
aggregate_options
Aggregate and merge CLI and config file options.
src/flake8/options/aggregator.py:19
Function
application
Create an application.
tests/unit/test_application.py:21
Function
bool_errcheck
(result, func, args)
src/flake8/formatting/_windows_color.py:23
Function
configure_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
Function
count_parentheses
Count the number of parentheses.
src/flake8/processor.py:406
Function
count_side_effect
Side effect for the result handler to tell all are reported.
tests/integration/test_checker.py:260
Method
create_from
Create a Statistic from a :class:`flake8.violation.Violation`.
src/flake8/statistics.py:120
Function
default_options
Fixture returning the default options of flake8.
tests/unit/conftest.py:22
Method
display_name
Return the name for use in user-facing / error messages.
src/flake8/plugins/finder.py:51
Method
entry_name
Return the name given in the packaging metadata.
src/flake8/plugins/finder.py:46
Function
fake_plugin
(physical_line, self, tree, optional=None)
tests/unit/plugins/finder_test.py:652
Method
file_tokens
Return the complete set of tokens for a file.
src/flake8/processor.py:121
Function
files_dir
Create test dir for testing filenames_from.
tests/unit/test_discover_files.py:13
Method
filtered_option_kwargs
Return any actually-specified arguments.
src/flake8/options/manager.py:175
Function
find_plugins
Discovers all plugins (but does not load them).
src/flake8/plugins/finder.py:247
Function
flake8_config
(tmp_path)
tests/integration/test_aggregator.py:28
Function
flake8_dist
(tmp_path)
tests/unit/plugins/finder_test.py:111
Function
flake8_foo_dist
(tmp_path)
tests/unit/plugins/finder_test.py:138
Method
format
Format and write error out. If an output filename is specified, write formatted errors to that file. Otherwise, print the formatted e
src/flake8/formatting/default.py:40
Method
format
Define method to verify operation.
tests/unit/test_base_formatter.py:202
Method
format
(self, *args)
tests/unit/test_legacy_api.py:78
Function
get_python_version
Find and format the python implementation and version. :returns: Implementation name, version, and platform as a string.
src/flake8/utils.py:265
Function
get_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
Function
information
Generate the information to be printed for the bug report.
src/flake8/main/debug.py:10
Function
is_eol_token
Check if the token is an end-of-line token.
src/flake8/processor.py:389
Function
is_excluded
(arg: str)
src/flake8/discover_files.py:63
Function
is_multiline_string
Check if this is a multiline string.
src/flake8/processor.py:394
Function
is_using_stdin
Determine if we're going to read from stdin. :param paths: The paths that we're going to check. :returns: True if stdin (-) i
src/flake8/utils.py:203
Function
load_config
Load the configuration given the user options. - in ``isolated`` mode, return an empty configuration - if a config file is given in ``config`
src/flake8/options/config.py:56
Function
load_plugins
Load and classify all flake8 plugins. - first: extends ``sys.path`` with ``paths`` (to import local plugins) - next: converts the ``Plugin``s
src/flake8/plugins/finder.py:355
Function
local_config
(tmp_path)
tests/integration/test_plugins.py:43
Function
local_plugin_cfg
()
tests/unit/plugins/finder_test.py:362
Function
make
Make the formatter from the requested user options. - if :option:`flake8 --quiet` is specified, return the ``quiet-filename`` formatter.
src/flake8/plugins/reporter.py:13
Function
matches_filename
Use fnmatch to discern if a path exists in patterns. :param path: The path to the file under question :param patterns: The pa
src/flake8/utils.py:232
Function
mock_distribution
(pyflakes_dist, pycodestyle_dist)
tests/unit/plugins/finder_test.py:160
Function
normalize_paths
Normalize a list of paths relative to a parent directory. :returns: The normalized paths.
src/flake8/utils.py:152
Function
normalize_pypi_name
Normalize a distribution name according to PEP 503.
src/flake8/utils.py:278
Function
opt_manager
()
tests/unit/test_options_config.py:170
Method
options
Return application's options. An instance of :class:`argparse.Namespace` containing parsed options.
src/flake8/api/legacy.py:89
Function
optmanager
Create a new OptionManager.
tests/integration/test_aggregator.py:15
Function
optmanager
Generate a simple OptionManager with default test arguments.
tests/unit/test_option_manager.py:16
Function
parse_comma_separated_list
Parse a comma-separated list. :param value: String to be parsed and normalized. :param regexp: Compiled regular expression us
src/flake8/utils.py:25
Function
parse_config
Parse and normalize the typed configuration options.
src/flake8/options/config.py:98
Function
parse_files_to_codes_mapping
Parse a files-to-codes mapping. A files-to-codes mapping a sequence of values specified as `filenames list:codes list ...`. Each of the list
src/flake8/utils.py:78
Method
parse_options
Parse option values from Flake8's OptionManager.
src/flake8/plugins/pyflakes.py:117
Function
parse_plugin_options
Parse plugin loading related options.
src/flake8/plugins/finder.py:127
Method
paths
Return the extra arguments passed as paths.
src/flake8/api/legacy.py:98
Function
plugin_func_gen
Yield the expected report.
tests/integration/test_checker.py:32
Function
plugin_func_list
Return a list of expected reports.
tests/integration/test_checker.py:37
Function
plugin_func_out_of_bounds
This produces an error out of bounds.
tests/integration/test_checker.py:73
Function
plugin_func_physical_gen_multiple
Expect report from a physical_line. Generator of multiple results.
tests/integration/test_checker.py:67
Function
plugin_func_physical_gen_single
Expect report from a physical_line. Generator of single result.
tests/integration/test_checker.py:62
Function
plugin_func_physical_list_multiple
Expect report from a physical_line. List of multiple results.
tests/integration/test_checker.py:57
Function
plugin_func_physical_list_single
Expect report from a physical_line. List of single result.
tests/integration/test_checker.py:52
Function
plugin_func_physical_none
Expect report from a physical_line. No results.
tests/integration/test_checker.py:47
Function
plugin_func_physical_ret
Expect report from a physical_line. Single return.
tests/integration/test_checker.py:42
Method
processing_file
Record the fact that we're processing the file's results.
src/flake8/style_guide.py:254
Function
pycodestyle_dist
(tmp_path)
tests/unit/plugins/finder_test.py:98
Function
pycodestyle_logical
Run pycodestyle logical checks.
src/flake8/plugins/pycodestyle.py:40
Function
pycodestyle_physical
Run pycodestyle physical checks.
src/flake8/plugins/pycodestyle.py:87
Function
pyflakes_dist
(tmp_path)
tests/unit/plugins/finder_test.py:85
Function
reporters
()
tests/unit/plugins/reporter_test.py:21
Function
reset_sys
()
tests/unit/plugins/finder_test.py:699
Method
run
Do nothing.
tests/integration/test_plugins.py:23
Method
run
Do nothing.
tests/integration/test_plugins.py:38
Method
run
(self)
tests/integration/test_plugins.py:120
Method
run
Do nothing.
tests/integration/subdir/aplugin.py:11
Method
run
Do nothing.
example-plugin/src/flake8_example_plugin/off_by_default.py:13
Method
run
Do nothing.
example-plugin/src/flake8_example_plugin/on_by_default.py:11
Function
stdin_get_lines
Return lines of stdin split according to file splitting.
src/flake8/utils.py:198
Method
stop
Stop checking files.
src/flake8/checker.py:259
Function
test_acquire_when_multiprocessing_pool_can_initialize
Verify successful importing of hardware semaphore support. Mock the behaviour of a platform that has a hardware sem_open implementation, and
tests/integration/test_checker.py:282
Function
test_acquire_when_multiprocessing_pool_can_not_initialize
Verify unsuccessful importing of hardware semaphore support. Mock the behaviour of a platform that has not got a hardware sem_open implementa
tests/integration/test_checker.py:298
Function
test_add_option_long_option_only
Verify the behaviour of adding a long-option only.
tests/unit/test_option_manager.py:74
Function
test_add_option_short_option_only
Verify the behaviour of adding a short-option only.
tests/unit/test_option_manager.py:65
Function
test_add_option_with_custom_args
Verify that add_option handles custom Flake8 parameters.
tests/unit/test_option_manager.py:94
Function
test_add_short_and_long_option_names
Verify the behaviour of using both short and long option names.
tests/unit/test_option_manager.py:84
Function
test_after_init_is_always_called
Verify after_init is called.
tests/unit/test_base_formatter.py:193
Function
test_aggregate_options_when_isolated
Verify we aggregate options and config values appropriately.
tests/integration/test_aggregator.py:68
Function
test_aggregate_options_with_config
Verify we aggregate options and config values appropriately.
tests/integration/test_aggregator.py:46
Function
test_all_codes_documented
()
tests/unit/test_pyflakes_codes.py:23
Function
test_all_pyflakes_messages_have_flake8_codes_assigned
Verify all PyFlakes messages have error codes assigned.
tests/unit/test_pyflakes_codes.py:13
Function
test_alternate_stdin_name_is_filtered
()
tests/unit/test_discover_files.py:155
Function
test_application_exit_code
Verify Application.exit_code returns the correct value.
tests/unit/test_application.py:38
Function
test_benchmark_successful
Test that --benchmark does not crash.
tests/integration/test_main.py:207
Function
test_bug_report_successful
Test that --bug-report does not crash.
tests/integration/test_main.py:197
Function
test_build_ast
Verify the logic for how we build an AST for plugins.
tests/unit/test_file_processor.py:289
Function
test_caches_filenames_already_printed
Verify we cache filenames when we format them.
tests/unit/test_filenameonly_formatter.py:18
Function
test_classify_plugins
()
tests/unit/plugins/finder_test.py:730
Function
test_classify_plugins_does_not_error_on_reporter_prefix
()
tests/unit/plugins/finder_test.py:789
Function
test_classify_plugins_enable_a_disabled_plugin
()
tests/unit/plugins/finder_test.py:759
Function
test_classify_plugins_errors_on_incorrect_checker_name
()
tests/unit/plugins/finder_test.py:804
Function
test_cli_config_option_respected
Test --config is used.
tests/integration/test_main.py:306
← previous
next →
201–300 of 526, ranked by callers