MCPcopy Create free account

hub / github.com/PyCQA/flake8 / functions

Functions526 in github.com/PyCQA/flake8

Functiontest_cli_isolated_overrides_config_option
Test --isolated overrides --config.
tests/integration/test_main.py:322
Functiontest_color_always_is_true
Verify that color='always' sets it to True.
tests/unit/test_base_formatter.py:142
Functiontest_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
Functiontest_color_auto_is_false_without_tty
Verify that color='auto' sets it to False without a tty.
tests/unit/test_base_formatter.py:164
Functiontest_color_auto_is_true_for_tty
Verify that color='auto' sets it to True for a tty.
tests/unit/test_base_formatter.py:157
Functiontest_color_never_is_false
Verify that color='never' sets it to False despite a tty.
tests/unit/test_base_formatter.py:178
Functiontest_config_file_not_found
Ensure that an explicitly specified config file which is not found is an error
tests/integration/test_main.py:371
Functiontest_config_file_with_encoding_error_is_not_considered
(tmp_path, caplog)
tests/unit/test_options_config.py:38
Functiontest_config_file_with_parse_error_is_not_considered
(tmp_path, caplog)
tests/unit/test_options_config.py:25
Functiontest_config_file_without_section_is_not_considered
(tmp_path)
tests/unit/test_options_config.py:19
Functiontest_config_name_generation
Show that we generate the config name deterministically.
tests/unit/test_option.py:38
Functiontest_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
Functiontest_config_not_found_returns_none
(tmp_path)
tests/unit/test_options_config.py:15
Functiontest_count_parentheses
Verify our arithmetic is correct.
tests/unit/test_file_processor.py:384
Functiontest_debug_information
()
tests/unit/test_debug.py:10
Functiontest_decision_for
Verify we decide when to report an error.
tests/unit/test_decision_engine.py:181
Functiontest_default_stdin_name_is_not_filtered
()
tests/unit/test_discover_files.py:151
Functiontest_dest_is_not_overridden
Show that we do not override custom destinations.
tests/unit/test_option.py:54
Functiontest_disable_is_inline_ignored
Verify that is_inline_ignored exits immediately if disabling NoQA.
tests/unit/test_violation.py:46
Functiontest_duplicate_dists
(flake8_dist)
tests/unit/plugins/finder_test.py:339
Functiontest_e101_indent_char_does_not_reset
Ensure that E101 with an existing indent_char does not reset it.
tests/integration/test_main.py:39
Functiontest_early_keyboard_interrupt_does_not_crash
(capsys)
tests/integration/test_main.py:361
Functiontest_enable_local_plugin_from_config
App can load a local plugin from config file.
tests/integration/test_plugins.py:57
Functiontest_errors_sorted
(tmpdir, capsys)
tests/integration/test_main.py:101
Functiontest_escaping_of_fstrings_in_string_redacter
(tmpdir, capsys)
tests/integration/test_plugins.py:268
Functiontest_expand_indent
Verify we correctly measure the amount of indentation.
tests/unit/test_file_processor.py:366
Functiontest_expand_paths_defaults_to_dot
()
tests/unit/test_discover_files.py:146
Functiontest_expand_paths_honors_exclude
()
tests/unit/test_discover_files.py:140
Functiontest_extend_default_ignore
Verify that we update the extended default ignore list.
tests/unit/test_option_manager.py:164
Functiontest_extend_exclude
Ensure that `flake8 --extend-exclude` works.
tests/integration/test_main.py:121
Functiontest_file_not_found
Ensure that a not-found file / directory is an error.
tests/integration/test_main.py:338
Functiontest_filename_included_even_if_not_matching_include
(tmp_path)
tests/unit/test_discover_files.py:164
Functiontest_filenames_from_a_directory
Verify that filenames_from walks a directory.
tests/unit/test_discover_files.py:35
Functiontest_filenames_from_a_directory_with_a_predicate
Verify that predicates filter filenames_from.
tests/unit/test_discover_files.py:44
Functiontest_filenames_from_a_directory_with_a_predicate_from_the_current_dir
Verify that predicates filter filenames_from.
tests/unit/test_discover_files.py:58
Functiontest_filenames_from_a_single_file
Verify that we simply yield that filename.
tests/unit/test_discover_files.py:72
Functiontest_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
Functiontest_filenames_from_exclude_doesnt_exclude_directory_names
Verify that we don't greedily exclude subdirs.
tests/unit/test_discover_files.py:84
Functiontest_filenames_from_predicate_applies_to_dirname
Test that the predicate can filter whole directories.
tests/unit/test_discover_files.py:105
Functiontest_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
Functiontest_find_config_either_section
(tmp_path, section)
tests/unit/test_options_config.py:58
Functiontest_find_config_file_exists_at_path
(tmp_path, cfg_name)
tests/unit/test_options_config.py:50
Functiontest_find_config_ignores_homedir
(tmp_path)
tests/unit/test_options_config.py:75
Functiontest_find_config_ignores_unknown_homedir
(tmp_path)
tests/unit/test_options_config.py:85
Functiontest_find_config_searches_upwards
(tmp_path)
tests/unit/test_options_config.py:65
Functiontest_find_local_plugins
(local_plugin_cfg)
tests/unit/plugins/finder_test.py:370
Functiontest_find_local_plugins_nothing
()
tests/unit/plugins/finder_test.py:356
Functiontest_find_plugins
( tmp_path, flake8_dist, flake8_foo_dist, mock_distribution, local_plugin_cfg, )
tests/unit/plugins/finder_test.py:472
Functiontest_find_plugins_name_normalization
(flake8_foo_dist)
tests/unit/plugins/finder_test.py:622
Functiontest_find_plugins_plugin_is_missing
(flake8_dist, flake8_foo_dist)
tests/unit/plugins/finder_test.py:588
Functiontest_find_plugins_plugin_is_present
(flake8_foo_dist)
tests/unit/plugins/finder_test.py:565
Functiontest_flake8_plugins
Ensure entrypoints for flake8 are parsed specially.
tests/unit/plugins/finder_test.py:166
Functiontest_fnmatch
Verify that our fnmatch wrapper works as expected.
tests/unit/test_utils.py:181
Functiontest_form_feed_line_split
Test that form feed is treated the same for stdin.
tests/integration/test_main.py:16
Functiontest_format_needs_to_be_implemented
Ensure BaseFormatter#format raises a NotImplementedError.
tests/unit/test_base_formatter.py:48
Functiontest_format_option_help
Test that help displays list of available formatters.
tests/integration/test_main.py:389
Functiontest_format_returns_nothing
Verify Nothing.format returns None.
tests/unit/test_nothing_formatter.py:18
Functiontest_handle_error_does_not_raise_type_errors
Verify that we handle our inputs better.
tests/unit/test_style_guide.py:29
Functiontest_handle_file_plugins
Test the FileChecker class handling different file plugin types.
tests/integration/test_checker.py:117
Functiontest_handle_formats_the_error
Verify that a formatter will call format from handle.
tests/unit/test_base_formatter.py:207
Functiontest_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
Functiontest_implicitly_selected_and_implicitly_ignored_defers_to_length
()
tests/unit/test_decision_engine.py:196
Functiontest_import_plugins_extends_sys_path
()
tests/unit/plugins/finder_test.py:709
Functiontest_importlib_plugins
Ensure we can load plugins from importlib.metadata.
tests/unit/plugins/finder_test.py:218
Functiontest_invalid_extend_ignore_codes_raise_error
(tmpdir, opt_manager)
tests/unit/test_options_config.py:246
Functiontest_invalid_file_list
Test parsing of invalid files-to-codes mappings.
tests/unit/test_utils.py:127
Functiontest_invalid_ignore_codes_raise_error
(tmpdir, opt_manager)
tests/unit/test_options_config.py:230
Functiontest_invalid_plugin_prefixes
(s)
tests/unit/test_defaults.py:35
Functiontest_is_inline_ignored
Verify that we detect inline usage of ``# noqa``.
tests/unit/test_violation.py:36
Functiontest_jobs_argument_repr
Test that JobsArgument has a correct __repr__.
tests/unit/test_option_manager.py:207
Functiontest_jobs_argument_str
Test that JobsArgument has a correct __str__.
tests/unit/test_option_manager.py:201
Functiontest_jobs_count_limited_to_file_count
()
tests/unit/test_checker_manager.py:66
Functiontest_key_creation
Verify how we create Keys from Errors.
tests/unit/test_statistics.py:24
Functiontest_key_matching
Verify Key#matches behaves as we expect with fthe above input.
tests/unit/test_statistics.py:55
Functiontest_keyword_arguments_for
Verify the keyword args are generated properly.
tests/unit/test_file_processor.py:231
Functiontest_keyword_arguments_for_does_not_handle_attribute_errors
Verify we re-raise AttributeErrors.
tests/unit/test_file_processor.py:245
Functiontest_legacy_api
A basic end-to-end test for the legacy api reporting errors.
tests/integration/test_api_legacy.py:7
Functiontest_line_check_results
Test the FileChecker class handling results from line checks.
tests/integration/test_checker.py:147
Functiontest_load_auto_config_utf8
(tmpdir)
tests/unit/test_options_config.py:147
Functiontest_load_config_append_config
(tmpdir)
tests/unit/test_options_config.py:132
Functiontest_load_config_config_specified_skips_discovery
(tmpdir)
tests/unit/test_options_config.py:92
Functiontest_load_config_isolated_ignores_configuration
(tmpdir)
tests/unit/test_options_config.py:122
Functiontest_load_config_missing_append_config_raise_exception
()
tests/unit/test_options_config.py:225
Functiontest_load_config_missing_file_raises_exception
(capsys)
tests/unit/test_options_config.py:220
Functiontest_load_config_no_config_file_does_discovery
(tmpdir)
tests/unit/test_options_config.py:104
Functiontest_load_config_no_config_found_sets_cfg_dir_to_pwd
(tmpdir)
tests/unit/test_options_config.py:114
Functiontest_load_explicit_config_utf8
(tmpdir)
tests/unit/test_options_config.py:154
Functiontest_load_extra_config_utf8
(tmpdir)
tests/unit/test_options_config.py:161
Functiontest_load_plugin_import_error
()
tests/unit/plugins/finder_test.py:663
Functiontest_load_plugin_not_callable
()
tests/unit/plugins/finder_test.py:674
Functiontest_load_plugin_ok
()
tests/unit/plugins/finder_test.py:686
Functiontest_load_plugins
()
tests/unit/plugins/finder_test.py:819
Functiontest_loaded_plugin_entry_name_vs_display_name
()
tests/unit/plugins/finder_test.py:34
Functiontest_local_plugin_can_add_option
A local plugin can add a CLI option.
tests/integration/test_plugins.py:80
Functiontest_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
Functiontest_logical_line_plugin
(tmpdir, capsys)
tests/integration/test_plugins.py:240
Functiontest_make_checkers
Verify that we create a list of FileChecker instances.
tests/unit/test_checker_manager.py:76
Functiontest_make_formatter_custom
(reporters)
tests/unit/plugins/reporter_test.py:60
Functiontest_make_formatter_default
(reporters)
tests/unit/plugins/reporter_test.py:43
Functiontest_make_formatter_format_string
(reporters, caplog)
tests/unit/plugins/reporter_test.py:65
← previousnext →301–400 of 526, ranked by callers