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_make_formatter_quiet_filename
(reporters)
tests/unit/plugins/reporter_test.py:49
Function
test_make_formatter_very_quiet
(reporters, quiet)
tests/unit/plugins/reporter_test.py:55
Function
test_malformed_per_file_ignores_error
Test the error message for malformed `per-file-ignores`.
tests/integration/test_main.py:138
Function
test_matches_filename_for_excluding_dotfiles
Verify that `.` and `..` are not matched by `.*`.
tests/unit/test_utils.py:165
Function
test_multiprocessing_cpu_count_not_implemented
Verify that jobs is 0 if cpu_count is unavailable.
tests/unit/test_checker_manager.py:52
Function
test_mutate_string
Verify we appropriately mutate the string to sanitize it.
tests/unit/test_file_processor.py:349
Function
test_next_line
Verify we update the file_processor state for each new line.
tests/unit/test_file_processor.py:192
Function
test_next_logical_line_updates_the_previous_logical_line
Verify that we update our tracking of the previous logical line.
tests/unit/test_file_processor.py:299
Function
test_nonexistent_file
Verify that FileProcessor raises IOError when a file does not exist.
tests/unit/test_file_processor.py:389
Function
test_nonexistent_file
Verify that checking non-existent file results in an error.
tests/unit/test_file_checker.py:26
Function
test_noqa_line_for
Verify we grab the correct line from the cached lines.
tests/unit/test_file_processor.py:136
Function
test_noqa_line_for_continuation
Verify that the correct "line" is retrieved for continuation.
tests/unit/test_file_processor.py:152
Function
test_noqa_line_for_no_eol_at_end_of_file
Verify that we properly handle noqa line at the end of the file.
tests/unit/test_file_processor.py:181
Function
test_normalize_path
Verify that we normalize paths provided to the tool.
tests/unit/test_utils.py:142
Function
test_normalize_paths
Verify we normalizes a sequence of paths provided to the tool.
tests/unit/test_utils.py:160
Function
test_normalize_pypi_name
(s, expected)
tests/unit/test_utils.py:212
Function
test_obtaining_args_from_sys_argv_when_not_explicity_provided
Test that arguments are obtained from 'sys.argv'.
tests/integration/test_main.py:294
Function
test_only_returns_a_string_once_from_format
Verify format ignores the second error with the same filename.
tests/unit/test_filenameonly_formatter.py:27
Function
test_option_manager_creates_option_parser
Verify that a new manager creates a new parser.
tests/unit/test_option_manager.py:26
Function
test_option_manager_including_parent_options
Verify parent options are included in the parsed options.
tests/unit/test_option_manager.py:31
Function
test_oserrors_are_reraised
Verify that unexpected OSErrors will cause the Manager to reraise.
tests/unit/test_checker_manager.py:39
Function
test_oserrors_cause_serial_fall_back
Verify that OSErrors will cause the Manager to fallback to serial.
tests/unit/test_checker_manager.py:29
Function
test_output_file
Ensure that --output-file is honored.
tests/integration/test_main.py:347
Function
test_parameters_for_class_plugin
Verify that we can retrieve the parameters for a class plugin.
tests/unit/plugins/finder_test.py:639
Function
test_parameters_for_function_plugin
Verify that we retrieve the parameters for a function plugin.
tests/unit/plugins/finder_test.py:649
Function
test_parse_args_forwarding_default_values
Verify default provided values are present in the final result.
tests/unit/test_option_manager.py:50
Function
test_parse_args_forwarding_type_coercion
Verify default provided values are type converted from add_option.
tests/unit/test_option_manager.py:57
Function
test_parse_args_handles_comma_separated_defaults
Show that parse_args handles defaults that are comma-separated.
tests/unit/test_option_manager.py:119
Function
test_parse_args_handles_comma_separated_lists
Show that parse_args handles user-specified comma-separated lists.
tests/unit/test_option_manager.py:132
Function
test_parse_args_normalize_path
Show that parse_args handles path normalization.
tests/unit/test_option_manager.py:108
Function
test_parse_args_normalize_paths
Verify parse_args normalizes a comma-separated list of paths.
tests/unit/test_option_manager.py:145
Function
test_parse_comma_separated_list
Verify that similar inputs produce identical outputs.
tests/unit/test_utils.py:34
Function
test_parse_config_ignores_unknowns
(tmp_path, opt_manager, caplog)
tests/unit/test_options_config.py:203
Function
test_parse_config_no_values
(tmp_path, opt_manager)
tests/unit/test_options_config.py:178
Function
test_parse_config_typed_values
(tmp_path, opt_manager)
tests/unit/test_options_config.py:184
Function
test_parse_enabled_from_commandline
(tmp_path)
tests/unit/plugins/finder_test.py:419
Function
test_parse_enabled_from_config
(opt, tmp_path)
tests/unit/plugins/finder_test.py:433
Function
test_parse_files_to_codes_mapping
Test parsing of valid files-to-codes mappings.
tests/unit/test_utils.py:106
Function
test_parse_invalid_jobs_argument
Test that --jobs properly rejects invalid arguments.
tests/unit/test_option_manager.py:186
Function
test_parse_plugin_options_local_plugin_paths
(tmp_path)
tests/unit/plugins/finder_test.py:457
Function
test_parse_plugin_options_local_plugin_paths_missing
(tmp_path)
tests/unit/plugins/finder_test.py:446
Function
test_parse_plugin_options_not_specified
(tmp_path)
tests/unit/plugins/finder_test.py:403
Function
test_parse_valid_jobs_argument
Test that --jobs properly parses valid arguments.
tests/unit/test_option_manager.py:179
Function
test_physical_line_file_not_ending_in_newline
See https://github.com/PyCQA/pycodestyle/issues/960.
tests/integration/test_main.py:262
Function
test_physical_line_file_not_ending_in_newline_trailing_ws
See https://github.com/PyCQA/pycodestyle/issues/960.
tests/integration/test_main.py:278
Function
test_physical_line_plugin_multiline_fstring
(tmpdir, capsys)
tests/integration/test_plugins.py:204
Function
test_physical_line_plugin_multiline_string
(tmpdir, capsys)
tests/integration/test_plugins.py:174
Function
test_pickleable
Ensure that our exceptions can cross pickle boundaries.
tests/unit/test_exceptions.py:29
Function
test_plugin_extends_default_ignore_but_extend_selected
()
tests/unit/test_decision_engine.py:231
Function
test_plugin_gets_enabled_by_default
(tmp_path, capsys)
tests/integration/test_plugins.py:128
Function
test_plugin_off_by_default
(tmp_path, capsys)
tests/integration/test_plugins.py:146
Function
test_plugins_all_plugins
()
tests/unit/plugins/finder_test.py:40
Function
test_plugins_versions_str
()
tests/unit/plugins/finder_test.py:66
Function
test_processor_split_line
(default_options)
tests/unit/test_file_processor.py:261
Function
test_pyflakes_builtins
(tmpdir, capsys)
tests/integration/plugins/test_pyflakes.py:6
Function
test_raises_exception_on_failed_plugin
Checks that a failing plugin results in PluginExecutionFailed.
tests/unit/test_file_checker.py:41
Function
test_read_lines_from_stdin
Verify that we use our own utility function to retrieve stdin.
tests/unit/test_file_processor.py:100
Function
test_read_lines_ignores_empty_display_name
Verify that when processing stdin we use a display name if present.
tests/unit/test_file_processor.py:125
Function
test_read_lines_incorrect_utf_16
Verify that an incorrectly encoded file is read as latin-1.
tests/unit/test_file_processor.py:36
Function
test_read_lines_splits_lines
Verify that read_lines splits the lines of the file.
tests/unit/test_file_processor.py:13
Function
test_read_lines_universal_newlines
r"""Verify that line endings are translated to \n.
tests/unit/test_file_processor.py:28
Function
test_read_lines_unknown_encoding
Verify that an unknown encoding is still read as latin-1.
tests/unit/test_file_processor.py:44
Function
test_read_lines_uses_display_name
Verify that when processing stdin we use a display name if present.
tests/unit/test_file_processor.py:116
Function
test_recording_statistics
Verify that we appropriately create a new Statistic and store it.
tests/unit/test_statistics.py:78
Function
test_report_get_statistics
Verify that we use the statistics object.
tests/unit/test_legacy_api.py:103
Function
test_report_order
Test in which order the results will be reported. It gets a list of reports from the file checkers and verifies that the result will be
tests/integration/test_checker.py:252
Function
test_report_total_errors
Verify total errors is just a proxy attribute.
tests/unit/test_legacy_api.py:96
Function
test_repr
Verify we generate a correct repr.
tests/unit/test_file_checker.py:16
Function
test_should_ignore_file
Verify that we ignore a file if told to.
tests/unit/test_file_processor.py:83
Function
test_should_ignore_file_to_handle_disable_noqa
Verify that we ignore a file if told to.
tests/unit/test_file_processor.py:89
Function
test_show_source_option
Ensure that --show-source and --no-show-source work.
tests/integration/test_main.py:74
Function
test_show_source_returns_nothing
Verify Nothing.show_source returns None.
tests/unit/test_nothing_formatter.py:26
Function
test_show_source_returns_nothing
Verify show_source returns nothing.
tests/unit/test_filenameonly_formatter.py:36
Function
test_show_source_returns_nothing_when_not_showing_source
Ensure we return nothing when users want nothing.
tests/unit/test_base_formatter.py:57
Function
test_show_source_returns_nothing_when_there_is_source
Ensure we return nothing when there is no line.
tests/unit/test_base_formatter.py:68
Function
test_show_source_updates_physical_line_appropriately
Ensure the error column is appropriately indicated.
tests/unit/test_base_formatter.py:99
Function
test_specific_noqa_does_not_clobber_pycodestyle_noqa
See https://github.com/pycqa/flake8/issues/1104.
tests/integration/test_main.py:230
Function
test_specific_noqa_on_line_with_continuation
See https://github.com/pycqa/flake8/issues/621.
tests/integration/test_main.py:243
Function
test_stage1_arg_parser
()
tests/unit/test_main_options.py:6
Function
test_stage1_arg_parser_ignores_help
()
tests/unit/test_main_options.py:16
Function
test_start
Verify we open a new file in the start method.
tests/unit/test_base_formatter.py:24
Function
test_statistic_creation
Verify how we create Statistic objects from Errors.
tests/unit/test_statistics.py:61
Function
test_statistic_for_retrieves_more_than_one_value
Show this works for more than a couple statistic values.
tests/unit/test_statistics.py:113
Function
test_statistic_increment
Verify we update the count.
tests/unit/test_statistics.py:70
Function
test_statistics_for_filters_by_filename
Show we can retrieve the only statistic recorded.
tests/unit/test_statistics.py:101
Function
test_statistics_for_single_record
Show we can retrieve the only statistic recorded.
tests/unit/test_statistics.py:91
Function
test_statistics_option
Ensure that `flake8 --statistics` works.
tests/integration/test_main.py:58
Function
test_stdin_filename_attribute
Verify that we update the filename attribute.
tests/unit/test_file_processor.py:108
Function
test_stdin_get_value_crlf
Ensure that stdin is normalized from crlf to lf.
tests/unit/test_utils.py:186
Function
test_stdin_unknown_coding_token
Ensure we produce source even for unknown encodings.
tests/unit/test_utils.py:193
Function
test_stop
Verify we close open file objects.
tests/unit/test_base_formatter.py:37
Function
test_strip_utf_bom
r"""Verify that we strip '\xEF\xBB\xBF' from the first line.
tests/unit/test_file_processor.py:59
Function
test_style_guide_applies_to
Verify that we match a file to its style guide.
tests/unit/test_style_guide.py:70
Function
test_style_guide_manager
Verify how the StyleGuideManager creates a default style guide.
tests/unit/test_style_guide.py:43
Function
test_style_guide_manager_pre_file_ignores
Verify how the StyleGuideManager creates a default style guide.
tests/unit/test_style_guide.py:112
Function
test_style_guide_manager_pre_file_ignores_parsing
Verify how the StyleGuideManager creates a default style guide.
tests/unit/test_style_guide.py:83
Function
test_style_guide_manager_style_guide_for
Verify the style guide selection function.
tests/unit/test_style_guide.py:140
Function
test_styleguide_check_files
Verify we call the right application methods.
tests/unit/test_legacy_api.py:28
Function
test_styleguide_excluded
Verify we delegate to our file checker manager. When we add the parent argument, we don't check that is_path_excluded was called only once.
tests/unit/test_legacy_api.py:41
Function
test_styleguide_init_report
Verify we do the right incantation for the Application.
tests/unit/test_legacy_api.py:72
← previous
next →
401–500 of 526, ranked by callers