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
Function
test_cli_isolated_overrides_config_option
Test --isolated overrides --config.
tests/integration/test_main.py:322
Function
test_color_always_is_true
Verify that color='always' sets it to True.
tests/unit/test_base_formatter.py:142
Function
test_color_auto_is_false_if_not_supported_on_windows
Verify that color='auto' is False if not supported on windows.
tests/unit/test_base_formatter.py:171
Function
test_color_auto_is_false_without_tty
Verify that color='auto' sets it to False without a tty.
tests/unit/test_base_formatter.py:164
Function
test_color_auto_is_true_for_tty
Verify that color='auto' sets it to True for a tty.
tests/unit/test_base_formatter.py:157
Function
test_color_never_is_false
Verify that color='never' sets it to False despite a tty.
tests/unit/test_base_formatter.py:178
Function
test_config_file_not_found
Ensure that an explicitly specified config file which is not found is an error
tests/integration/test_main.py:371
Function
test_config_file_with_encoding_error_is_not_considered
(tmp_path, caplog)
tests/unit/test_options_config.py:38
Function
test_config_file_with_parse_error_is_not_considered
(tmp_path, caplog)
tests/unit/test_options_config.py:25
Function
test_config_file_without_section_is_not_considered
(tmp_path)
tests/unit/test_options_config.py:19
Function
test_config_name_generation
Show that we generate the config name deterministically.
tests/unit/test_option.py:38
Function
test_config_name_needs_long_option_name
Show that we error out if the Option should be parsed from config.
tests/unit/test_option.py:48
Function
test_config_not_found_returns_none
(tmp_path)
tests/unit/test_options_config.py:15
Function
test_count_parentheses
Verify our arithmetic is correct.
tests/unit/test_file_processor.py:384
Function
test_debug_information
()
tests/unit/test_debug.py:10
Function
test_decision_for
Verify we decide when to report an error.
tests/unit/test_decision_engine.py:181
Function
test_default_stdin_name_is_not_filtered
()
tests/unit/test_discover_files.py:151
Function
test_dest_is_not_overridden
Show that we do not override custom destinations.
tests/unit/test_option.py:54
Function
test_disable_is_inline_ignored
Verify that is_inline_ignored exits immediately if disabling NoQA.
tests/unit/test_violation.py:46
Function
test_duplicate_dists
(flake8_dist)
tests/unit/plugins/finder_test.py:339
Function
test_e101_indent_char_does_not_reset
Ensure that E101 with an existing indent_char does not reset it.
tests/integration/test_main.py:39
Function
test_early_keyboard_interrupt_does_not_crash
(capsys)
tests/integration/test_main.py:361
Function
test_enable_local_plugin_from_config
App can load a local plugin from config file.
tests/integration/test_plugins.py:57
Function
test_errors_sorted
(tmpdir, capsys)
tests/integration/test_main.py:101
Function
test_escaping_of_fstrings_in_string_redacter
(tmpdir, capsys)
tests/integration/test_plugins.py:268
Function
test_expand_indent
Verify we correctly measure the amount of indentation.
tests/unit/test_file_processor.py:366
Function
test_expand_paths_defaults_to_dot
()
tests/unit/test_discover_files.py:146
Function
test_expand_paths_honors_exclude
()
tests/unit/test_discover_files.py:140
Function
test_extend_default_ignore
Verify that we update the extended default ignore list.
tests/unit/test_option_manager.py:164
Function
test_extend_exclude
Ensure that `flake8 --extend-exclude` works.
tests/integration/test_main.py:121
Function
test_file_not_found
Ensure that a not-found file / directory is an error.
tests/integration/test_main.py:338
Function
test_filename_included_even_if_not_matching_include
(tmp_path)
tests/unit/test_discover_files.py:164
Function
test_filenames_from_a_directory
Verify that filenames_from walks a directory.
tests/unit/test_discover_files.py:35
Function
test_filenames_from_a_directory_with_a_predicate
Verify that predicates filter filenames_from.
tests/unit/test_discover_files.py:44
Function
test_filenames_from_a_directory_with_a_predicate_from_the_current_dir
Verify that predicates filter filenames_from.
tests/unit/test_discover_files.py:58
Function
test_filenames_from_a_single_file
Verify that we simply yield that filename.
tests/unit/test_discover_files.py:72
Function
test_filenames_from_a_single_file_does_not_exist
Verify that a passed filename which does not exist is returned back.
tests/unit/test_discover_files.py:78
Function
test_filenames_from_exclude_doesnt_exclude_directory_names
Verify that we don't greedily exclude subdirs.
tests/unit/test_discover_files.py:84
Function
test_filenames_from_predicate_applies_to_dirname
Test that the predicate can filter whole directories.
tests/unit/test_discover_files.py:105
Function
test_filenames_from_predicate_applies_to_initial_arg
Test that the predicate is also applied to the passed argument.
tests/unit/test_discover_files.py:98
Function
test_find_config_either_section
(tmp_path, section)
tests/unit/test_options_config.py:58
Function
test_find_config_file_exists_at_path
(tmp_path, cfg_name)
tests/unit/test_options_config.py:50
Function
test_find_config_ignores_homedir
(tmp_path)
tests/unit/test_options_config.py:75
Function
test_find_config_ignores_unknown_homedir
(tmp_path)
tests/unit/test_options_config.py:85
Function
test_find_config_searches_upwards
(tmp_path)
tests/unit/test_options_config.py:65
Function
test_find_local_plugins
(local_plugin_cfg)
tests/unit/plugins/finder_test.py:370
Function
test_find_local_plugins_nothing
()
tests/unit/plugins/finder_test.py:356
Function
test_find_plugins
( tmp_path, flake8_dist, flake8_foo_dist, mock_distribution, local_plugin_cfg, )
tests/unit/plugins/finder_test.py:472
Function
test_find_plugins_name_normalization
(flake8_foo_dist)
tests/unit/plugins/finder_test.py:622
Function
test_find_plugins_plugin_is_missing
(flake8_dist, flake8_foo_dist)
tests/unit/plugins/finder_test.py:588
Function
test_find_plugins_plugin_is_present
(flake8_foo_dist)
tests/unit/plugins/finder_test.py:565
Function
test_flake8_plugins
Ensure entrypoints for flake8 are parsed specially.
tests/unit/plugins/finder_test.py:166
Function
test_fnmatch
Verify that our fnmatch wrapper works as expected.
tests/unit/test_utils.py:181
Function
test_form_feed_line_split
Test that form feed is treated the same for stdin.
tests/integration/test_main.py:16
Function
test_format_needs_to_be_implemented
Ensure BaseFormatter#format raises a NotImplementedError.
tests/unit/test_base_formatter.py:48
Function
test_format_option_help
Test that help displays list of available formatters.
tests/integration/test_main.py:389
Function
test_format_returns_nothing
Verify Nothing.format returns None.
tests/unit/test_nothing_formatter.py:18
Function
test_handle_error_does_not_raise_type_errors
Verify that we handle our inputs better.
tests/unit/test_style_guide.py:29
Function
test_handle_file_plugins
Test the FileChecker class handling different file plugin types.
tests/integration/test_checker.py:117
Function
test_handle_formats_the_error
Verify that a formatter will call format from handle.
tests/unit/test_base_formatter.py:207
Function
test_handling_syntaxerrors_across_pythons
Verify we properly handle exception argument tuples. Python 3.10 added more information to the SyntaxError parse token tuple. We need to hand
tests/integration/test_checker.py:317
Function
test_implicitly_selected_and_implicitly_ignored_defers_to_length
()
tests/unit/test_decision_engine.py:196
Function
test_import_plugins_extends_sys_path
()
tests/unit/plugins/finder_test.py:709
Function
test_importlib_plugins
Ensure we can load plugins from importlib.metadata.
tests/unit/plugins/finder_test.py:218
Function
test_invalid_extend_ignore_codes_raise_error
(tmpdir, opt_manager)
tests/unit/test_options_config.py:246
Function
test_invalid_file_list
Test parsing of invalid files-to-codes mappings.
tests/unit/test_utils.py:127
Function
test_invalid_ignore_codes_raise_error
(tmpdir, opt_manager)
tests/unit/test_options_config.py:230
Function
test_invalid_plugin_prefixes
(s)
tests/unit/test_defaults.py:35
Function
test_is_inline_ignored
Verify that we detect inline usage of ``# noqa``.
tests/unit/test_violation.py:36
Function
test_jobs_argument_repr
Test that JobsArgument has a correct __repr__.
tests/unit/test_option_manager.py:207
Function
test_jobs_argument_str
Test that JobsArgument has a correct __str__.
tests/unit/test_option_manager.py:201
Function
test_jobs_count_limited_to_file_count
()
tests/unit/test_checker_manager.py:66
Function
test_key_creation
Verify how we create Keys from Errors.
tests/unit/test_statistics.py:24
Function
test_key_matching
Verify Key#matches behaves as we expect with fthe above input.
tests/unit/test_statistics.py:55
Function
test_keyword_arguments_for
Verify the keyword args are generated properly.
tests/unit/test_file_processor.py:231
Function
test_keyword_arguments_for_does_not_handle_attribute_errors
Verify we re-raise AttributeErrors.
tests/unit/test_file_processor.py:245
Function
test_legacy_api
A basic end-to-end test for the legacy api reporting errors.
tests/integration/test_api_legacy.py:7
Function
test_line_check_results
Test the FileChecker class handling results from line checks.
tests/integration/test_checker.py:147
Function
test_load_auto_config_utf8
(tmpdir)
tests/unit/test_options_config.py:147
Function
test_load_config_append_config
(tmpdir)
tests/unit/test_options_config.py:132
Function
test_load_config_config_specified_skips_discovery
(tmpdir)
tests/unit/test_options_config.py:92
Function
test_load_config_isolated_ignores_configuration
(tmpdir)
tests/unit/test_options_config.py:122
Function
test_load_config_missing_append_config_raise_exception
()
tests/unit/test_options_config.py:225
Function
test_load_config_missing_file_raises_exception
(capsys)
tests/unit/test_options_config.py:220
Function
test_load_config_no_config_file_does_discovery
(tmpdir)
tests/unit/test_options_config.py:104
Function
test_load_config_no_config_found_sets_cfg_dir_to_pwd
(tmpdir)
tests/unit/test_options_config.py:114
Function
test_load_explicit_config_utf8
(tmpdir)
tests/unit/test_options_config.py:154
Function
test_load_extra_config_utf8
(tmpdir)
tests/unit/test_options_config.py:161
Function
test_load_plugin_import_error
()
tests/unit/plugins/finder_test.py:663
Function
test_load_plugin_not_callable
()
tests/unit/plugins/finder_test.py:674
Function
test_load_plugin_ok
()
tests/unit/plugins/finder_test.py:686
Function
test_load_plugins
()
tests/unit/plugins/finder_test.py:819
Function
test_loaded_plugin_entry_name_vs_display_name
()
tests/unit/plugins/finder_test.py:34
Function
test_local_plugin_can_add_option
A local plugin can add a CLI option.
tests/integration/test_plugins.py:80
Function
test_logical_line_offset_out_of_bounds
Ensure that logical line offsets that are out of bounds do not crash.
tests/integration/test_checker.py:157
Function
test_logical_line_plugin
(tmpdir, capsys)
tests/integration/test_plugins.py:240
Function
test_make_checkers
Verify that we create a list of FileChecker instances.
tests/unit/test_checker_manager.py:76
Function
test_make_formatter_custom
(reporters)
tests/unit/plugins/reporter_test.py:60
Function
test_make_formatter_default
(reporters)
tests/unit/plugins/reporter_test.py:43
Function
test_make_formatter_format_string
(reporters, caplog)
tests/unit/plugins/reporter_test.py:65
← previous
next →
301–400 of 526, ranked by callers