MCPcopy Create free account

hub / github.com/PyCQA/flake8 / functions

Functions526 in github.com/PyCQA/flake8

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
Methodadd_options
Register options for PyFlakes on the Flake8 OptionManager.
src/flake8/plugins/pyflakes.py:100
Methodadd_options
Register options.
tests/integration/test_plugins.py:27
Methodafter_init
Check for a custom format string.
src/flake8/formatting/default.py:69
Methodafter_init
Initialize our set of filenames.
src/flake8/formatting/default.py:86
Methodafter_init
Define method to verify operation.
tests/unit/test_base_formatter.py:188
Functionaggregate_options
Aggregate and merge CLI and config file options.
src/flake8/options/aggregator.py:19
Functionapplication
Create an application.
tests/unit/test_application.py:21
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
Functioncount_parentheses
Count the number of parentheses.
src/flake8/processor.py:406
Functioncount_side_effect
Side effect for the result handler to tell all are reported.
tests/integration/test_checker.py:260
Methodcreate_from
Create a Statistic from a :class:`flake8.violation.Violation`.
src/flake8/statistics.py:120
Functiondefault_options
Fixture returning the default options of flake8.
tests/unit/conftest.py:22
Methoddisplay_name
Return the name for use in user-facing / error messages.
src/flake8/plugins/finder.py:51
Methodentry_name
Return the name given in the packaging metadata.
src/flake8/plugins/finder.py:46
Functionfake_plugin
(physical_line, self, tree, optional=None)
tests/unit/plugins/finder_test.py:652
Methodfile_tokens
Return the complete set of tokens for a file.
src/flake8/processor.py:121
Functionfiles_dir
Create test dir for testing filenames_from.
tests/unit/test_discover_files.py:13
Methodfiltered_option_kwargs
Return any actually-specified arguments.
src/flake8/options/manager.py:175
Functionfind_plugins
Discovers all plugins (but does not load them).
src/flake8/plugins/finder.py:247
Functionflake8_config
(tmp_path)
tests/integration/test_aggregator.py:28
Functionflake8_dist
(tmp_path)
tests/unit/plugins/finder_test.py:111
Functionflake8_foo_dist
(tmp_path)
tests/unit/plugins/finder_test.py:138
Methodformat
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
Methodformat
Define method to verify operation.
tests/unit/test_base_formatter.py:202
Methodformat
(self, *args)
tests/unit/test_legacy_api.py:78
Functionget_python_version
Find and format the python implementation and version. :returns: Implementation name, version, and platform as a string.
src/flake8/utils.py:265
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
Functioninformation
Generate the information to be printed for the bug report.
src/flake8/main/debug.py:10
Functionis_eol_token
Check if the token is an end-of-line token.
src/flake8/processor.py:389
Functionis_excluded
(arg: str)
src/flake8/discover_files.py:63
Functionis_multiline_string
Check if this is a multiline string.
src/flake8/processor.py:394
Functionis_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
Functionload_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
Functionload_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
Functionlocal_config
(tmp_path)
tests/integration/test_plugins.py:43
Functionlocal_plugin_cfg
()
tests/unit/plugins/finder_test.py:362
Functionmake
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
Functionmatches_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
Functionmock_distribution
(pyflakes_dist, pycodestyle_dist)
tests/unit/plugins/finder_test.py:160
Functionnormalize_paths
Normalize a list of paths relative to a parent directory. :returns: The normalized paths.
src/flake8/utils.py:152
Functionnormalize_pypi_name
Normalize a distribution name according to PEP 503.
src/flake8/utils.py:278
Functionopt_manager
()
tests/unit/test_options_config.py:170
Methodoptions
Return application's options. An instance of :class:`argparse.Namespace` containing parsed options.
src/flake8/api/legacy.py:89
Functionoptmanager
Create a new OptionManager.
tests/integration/test_aggregator.py:15
Functionoptmanager
Generate a simple OptionManager with default test arguments.
tests/unit/test_option_manager.py:16
Functionparse_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
Functionparse_config
Parse and normalize the typed configuration options.
src/flake8/options/config.py:98
Functionparse_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
Methodparse_options
Parse option values from Flake8's OptionManager.
src/flake8/plugins/pyflakes.py:117
Functionparse_plugin_options
Parse plugin loading related options.
src/flake8/plugins/finder.py:127
Methodpaths
Return the extra arguments passed as paths.
src/flake8/api/legacy.py:98
Functionplugin_func_gen
Yield the expected report.
tests/integration/test_checker.py:32
Functionplugin_func_list
Return a list of expected reports.
tests/integration/test_checker.py:37
Functionplugin_func_out_of_bounds
This produces an error out of bounds.
tests/integration/test_checker.py:73
Functionplugin_func_physical_gen_multiple
Expect report from a physical_line. Generator of multiple results.
tests/integration/test_checker.py:67
Functionplugin_func_physical_gen_single
Expect report from a physical_line. Generator of single result.
tests/integration/test_checker.py:62
Functionplugin_func_physical_list_multiple
Expect report from a physical_line. List of multiple results.
tests/integration/test_checker.py:57
Functionplugin_func_physical_list_single
Expect report from a physical_line. List of single result.
tests/integration/test_checker.py:52
Functionplugin_func_physical_none
Expect report from a physical_line. No results.
tests/integration/test_checker.py:47
Functionplugin_func_physical_ret
Expect report from a physical_line. Single return.
tests/integration/test_checker.py:42
Methodprocessing_file
Record the fact that we're processing the file's results.
src/flake8/style_guide.py:254
Functionpycodestyle_dist
(tmp_path)
tests/unit/plugins/finder_test.py:98
Functionpycodestyle_logical
Run pycodestyle logical checks.
src/flake8/plugins/pycodestyle.py:40
Functionpycodestyle_physical
Run pycodestyle physical checks.
src/flake8/plugins/pycodestyle.py:87
Functionpyflakes_dist
(tmp_path)
tests/unit/plugins/finder_test.py:85
Functionreporters
()
tests/unit/plugins/reporter_test.py:21
Functionreset_sys
()
tests/unit/plugins/finder_test.py:699
Methodrun
Do nothing.
tests/integration/test_plugins.py:23
Methodrun
Do nothing.
tests/integration/test_plugins.py:38
Methodrun
(self)
tests/integration/test_plugins.py:120
Methodrun
Do nothing.
tests/integration/subdir/aplugin.py:11
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
Functionstdin_get_lines
Return lines of stdin split according to file splitting.
src/flake8/utils.py:198
Methodstop
Stop checking files.
src/flake8/checker.py:259
Functiontest_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
Functiontest_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
Functiontest_add_option_long_option_only
Verify the behaviour of adding a long-option only.
tests/unit/test_option_manager.py:74
Functiontest_add_option_short_option_only
Verify the behaviour of adding a short-option only.
tests/unit/test_option_manager.py:65
Functiontest_add_option_with_custom_args
Verify that add_option handles custom Flake8 parameters.
tests/unit/test_option_manager.py:94
Functiontest_add_short_and_long_option_names
Verify the behaviour of using both short and long option names.
tests/unit/test_option_manager.py:84
Functiontest_after_init_is_always_called
Verify after_init is called.
tests/unit/test_base_formatter.py:193
Functiontest_aggregate_options_when_isolated
Verify we aggregate options and config values appropriately.
tests/integration/test_aggregator.py:68
Functiontest_aggregate_options_with_config
Verify we aggregate options and config values appropriately.
tests/integration/test_aggregator.py:46
Functiontest_all_codes_documented
()
tests/unit/test_pyflakes_codes.py:23
Functiontest_all_pyflakes_messages_have_flake8_codes_assigned
Verify all PyFlakes messages have error codes assigned.
tests/unit/test_pyflakes_codes.py:13
Functiontest_alternate_stdin_name_is_filtered
()
tests/unit/test_discover_files.py:155
Functiontest_application_exit_code
Verify Application.exit_code returns the correct value.
tests/unit/test_application.py:38
Functiontest_benchmark_successful
Test that --benchmark does not crash.
tests/integration/test_main.py:207
Functiontest_bug_report_successful
Test that --bug-report does not crash.
tests/integration/test_main.py:197
Functiontest_build_ast
Verify the logic for how we build an AST for plugins.
tests/unit/test_file_processor.py:289
Functiontest_caches_filenames_already_printed
Verify we cache filenames when we format them.
tests/unit/test_filenameonly_formatter.py:18
Functiontest_classify_plugins
()
tests/unit/plugins/finder_test.py:730
Functiontest_classify_plugins_does_not_error_on_reporter_prefix
()
tests/unit/plugins/finder_test.py:789
Functiontest_classify_plugins_enable_a_disabled_plugin
()
tests/unit/plugins/finder_test.py:759
Functiontest_classify_plugins_errors_on_incorrect_checker_name
()
tests/unit/plugins/finder_test.py:804
Functiontest_cli_config_option_respected
Test --config is used.
tests/integration/test_main.py:306
← previousnext →201–300 of 526, ranked by callers