MCPcopy Create free account

hub / github.com/PyCQA/flake8 / functions

Functions526 in github.com/PyCQA/flake8

Functiontest_make_formatter_quiet_filename
(reporters)
tests/unit/plugins/reporter_test.py:49
Functiontest_make_formatter_very_quiet
(reporters, quiet)
tests/unit/plugins/reporter_test.py:55
Functiontest_malformed_per_file_ignores_error
Test the error message for malformed `per-file-ignores`.
tests/integration/test_main.py:138
Functiontest_matches_filename_for_excluding_dotfiles
Verify that `.` and `..` are not matched by `.*`.
tests/unit/test_utils.py:165
Functiontest_multiprocessing_cpu_count_not_implemented
Verify that jobs is 0 if cpu_count is unavailable.
tests/unit/test_checker_manager.py:52
Functiontest_mutate_string
Verify we appropriately mutate the string to sanitize it.
tests/unit/test_file_processor.py:349
Functiontest_next_line
Verify we update the file_processor state for each new line.
tests/unit/test_file_processor.py:192
Functiontest_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
Functiontest_nonexistent_file
Verify that FileProcessor raises IOError when a file does not exist.
tests/unit/test_file_processor.py:389
Functiontest_nonexistent_file
Verify that checking non-existent file results in an error.
tests/unit/test_file_checker.py:26
Functiontest_noqa_line_for
Verify we grab the correct line from the cached lines.
tests/unit/test_file_processor.py:136
Functiontest_noqa_line_for_continuation
Verify that the correct "line" is retrieved for continuation.
tests/unit/test_file_processor.py:152
Functiontest_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
Functiontest_normalize_path
Verify that we normalize paths provided to the tool.
tests/unit/test_utils.py:142
Functiontest_normalize_paths
Verify we normalizes a sequence of paths provided to the tool.
tests/unit/test_utils.py:160
Functiontest_normalize_pypi_name
(s, expected)
tests/unit/test_utils.py:212
Functiontest_obtaining_args_from_sys_argv_when_not_explicity_provided
Test that arguments are obtained from 'sys.argv'.
tests/integration/test_main.py:294
Functiontest_only_returns_a_string_once_from_format
Verify format ignores the second error with the same filename.
tests/unit/test_filenameonly_formatter.py:27
Functiontest_option_manager_creates_option_parser
Verify that a new manager creates a new parser.
tests/unit/test_option_manager.py:26
Functiontest_option_manager_including_parent_options
Verify parent options are included in the parsed options.
tests/unit/test_option_manager.py:31
Functiontest_oserrors_are_reraised
Verify that unexpected OSErrors will cause the Manager to reraise.
tests/unit/test_checker_manager.py:39
Functiontest_oserrors_cause_serial_fall_back
Verify that OSErrors will cause the Manager to fallback to serial.
tests/unit/test_checker_manager.py:29
Functiontest_output_file
Ensure that --output-file is honored.
tests/integration/test_main.py:347
Functiontest_parameters_for_class_plugin
Verify that we can retrieve the parameters for a class plugin.
tests/unit/plugins/finder_test.py:639
Functiontest_parameters_for_function_plugin
Verify that we retrieve the parameters for a function plugin.
tests/unit/plugins/finder_test.py:649
Functiontest_parse_args_forwarding_default_values
Verify default provided values are present in the final result.
tests/unit/test_option_manager.py:50
Functiontest_parse_args_forwarding_type_coercion
Verify default provided values are type converted from add_option.
tests/unit/test_option_manager.py:57
Functiontest_parse_args_handles_comma_separated_defaults
Show that parse_args handles defaults that are comma-separated.
tests/unit/test_option_manager.py:119
Functiontest_parse_args_handles_comma_separated_lists
Show that parse_args handles user-specified comma-separated lists.
tests/unit/test_option_manager.py:132
Functiontest_parse_args_normalize_path
Show that parse_args handles path normalization.
tests/unit/test_option_manager.py:108
Functiontest_parse_args_normalize_paths
Verify parse_args normalizes a comma-separated list of paths.
tests/unit/test_option_manager.py:145
Functiontest_parse_comma_separated_list
Verify that similar inputs produce identical outputs.
tests/unit/test_utils.py:34
Functiontest_parse_config_ignores_unknowns
(tmp_path, opt_manager, caplog)
tests/unit/test_options_config.py:203
Functiontest_parse_config_no_values
(tmp_path, opt_manager)
tests/unit/test_options_config.py:178
Functiontest_parse_config_typed_values
(tmp_path, opt_manager)
tests/unit/test_options_config.py:184
Functiontest_parse_enabled_from_commandline
(tmp_path)
tests/unit/plugins/finder_test.py:419
Functiontest_parse_enabled_from_config
(opt, tmp_path)
tests/unit/plugins/finder_test.py:433
Functiontest_parse_files_to_codes_mapping
Test parsing of valid files-to-codes mappings.
tests/unit/test_utils.py:106
Functiontest_parse_invalid_jobs_argument
Test that --jobs properly rejects invalid arguments.
tests/unit/test_option_manager.py:186
Functiontest_parse_plugin_options_local_plugin_paths
(tmp_path)
tests/unit/plugins/finder_test.py:457
Functiontest_parse_plugin_options_local_plugin_paths_missing
(tmp_path)
tests/unit/plugins/finder_test.py:446
Functiontest_parse_plugin_options_not_specified
(tmp_path)
tests/unit/plugins/finder_test.py:403
Functiontest_parse_valid_jobs_argument
Test that --jobs properly parses valid arguments.
tests/unit/test_option_manager.py:179
Functiontest_physical_line_file_not_ending_in_newline
See https://github.com/PyCQA/pycodestyle/issues/960.
tests/integration/test_main.py:262
Functiontest_physical_line_file_not_ending_in_newline_trailing_ws
See https://github.com/PyCQA/pycodestyle/issues/960.
tests/integration/test_main.py:278
Functiontest_physical_line_plugin_multiline_fstring
(tmpdir, capsys)
tests/integration/test_plugins.py:204
Functiontest_physical_line_plugin_multiline_string
(tmpdir, capsys)
tests/integration/test_plugins.py:174
Functiontest_pickleable
Ensure that our exceptions can cross pickle boundaries.
tests/unit/test_exceptions.py:29
Functiontest_plugin_extends_default_ignore_but_extend_selected
()
tests/unit/test_decision_engine.py:231
Functiontest_plugin_gets_enabled_by_default
(tmp_path, capsys)
tests/integration/test_plugins.py:128
Functiontest_plugin_off_by_default
(tmp_path, capsys)
tests/integration/test_plugins.py:146
Functiontest_plugins_all_plugins
()
tests/unit/plugins/finder_test.py:40
Functiontest_plugins_versions_str
()
tests/unit/plugins/finder_test.py:66
Functiontest_processor_split_line
(default_options)
tests/unit/test_file_processor.py:261
Functiontest_pyflakes_builtins
(tmpdir, capsys)
tests/integration/plugins/test_pyflakes.py:6
Functiontest_raises_exception_on_failed_plugin
Checks that a failing plugin results in PluginExecutionFailed.
tests/unit/test_file_checker.py:41
Functiontest_read_lines_from_stdin
Verify that we use our own utility function to retrieve stdin.
tests/unit/test_file_processor.py:100
Functiontest_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
Functiontest_read_lines_incorrect_utf_16
Verify that an incorrectly encoded file is read as latin-1.
tests/unit/test_file_processor.py:36
Functiontest_read_lines_splits_lines
Verify that read_lines splits the lines of the file.
tests/unit/test_file_processor.py:13
Functiontest_read_lines_universal_newlines
r"""Verify that line endings are translated to \n.
tests/unit/test_file_processor.py:28
Functiontest_read_lines_unknown_encoding
Verify that an unknown encoding is still read as latin-1.
tests/unit/test_file_processor.py:44
Functiontest_read_lines_uses_display_name
Verify that when processing stdin we use a display name if present.
tests/unit/test_file_processor.py:116
Functiontest_recording_statistics
Verify that we appropriately create a new Statistic and store it.
tests/unit/test_statistics.py:78
Functiontest_report_get_statistics
Verify that we use the statistics object.
tests/unit/test_legacy_api.py:103
Functiontest_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
Functiontest_report_total_errors
Verify total errors is just a proxy attribute.
tests/unit/test_legacy_api.py:96
Functiontest_repr
Verify we generate a correct repr.
tests/unit/test_file_checker.py:16
Functiontest_should_ignore_file
Verify that we ignore a file if told to.
tests/unit/test_file_processor.py:83
Functiontest_should_ignore_file_to_handle_disable_noqa
Verify that we ignore a file if told to.
tests/unit/test_file_processor.py:89
Functiontest_show_source_option
Ensure that --show-source and --no-show-source work.
tests/integration/test_main.py:74
Functiontest_show_source_returns_nothing
Verify Nothing.show_source returns None.
tests/unit/test_nothing_formatter.py:26
Functiontest_show_source_returns_nothing
Verify show_source returns nothing.
tests/unit/test_filenameonly_formatter.py:36
Functiontest_show_source_returns_nothing_when_not_showing_source
Ensure we return nothing when users want nothing.
tests/unit/test_base_formatter.py:57
Functiontest_show_source_returns_nothing_when_there_is_source
Ensure we return nothing when there is no line.
tests/unit/test_base_formatter.py:68
Functiontest_show_source_updates_physical_line_appropriately
Ensure the error column is appropriately indicated.
tests/unit/test_base_formatter.py:99
Functiontest_specific_noqa_does_not_clobber_pycodestyle_noqa
See https://github.com/pycqa/flake8/issues/1104.
tests/integration/test_main.py:230
Functiontest_specific_noqa_on_line_with_continuation
See https://github.com/pycqa/flake8/issues/621.
tests/integration/test_main.py:243
Functiontest_stage1_arg_parser
()
tests/unit/test_main_options.py:6
Functiontest_stage1_arg_parser_ignores_help
()
tests/unit/test_main_options.py:16
Functiontest_start
Verify we open a new file in the start method.
tests/unit/test_base_formatter.py:24
Functiontest_statistic_creation
Verify how we create Statistic objects from Errors.
tests/unit/test_statistics.py:61
Functiontest_statistic_for_retrieves_more_than_one_value
Show this works for more than a couple statistic values.
tests/unit/test_statistics.py:113
Functiontest_statistic_increment
Verify we update the count.
tests/unit/test_statistics.py:70
Functiontest_statistics_for_filters_by_filename
Show we can retrieve the only statistic recorded.
tests/unit/test_statistics.py:101
Functiontest_statistics_for_single_record
Show we can retrieve the only statistic recorded.
tests/unit/test_statistics.py:91
Functiontest_statistics_option
Ensure that `flake8 --statistics` works.
tests/integration/test_main.py:58
Functiontest_stdin_filename_attribute
Verify that we update the filename attribute.
tests/unit/test_file_processor.py:108
Functiontest_stdin_get_value_crlf
Ensure that stdin is normalized from crlf to lf.
tests/unit/test_utils.py:186
Functiontest_stdin_unknown_coding_token
Ensure we produce source even for unknown encodings.
tests/unit/test_utils.py:193
Functiontest_stop
Verify we close open file objects.
tests/unit/test_base_formatter.py:37
Functiontest_strip_utf_bom
r"""Verify that we strip '\xEF\xBB\xBF' from the first line.
tests/unit/test_file_processor.py:59
Functiontest_style_guide_applies_to
Verify that we match a file to its style guide.
tests/unit/test_style_guide.py:70
Functiontest_style_guide_manager
Verify how the StyleGuideManager creates a default style guide.
tests/unit/test_style_guide.py:43
Functiontest_style_guide_manager_pre_file_ignores
Verify how the StyleGuideManager creates a default style guide.
tests/unit/test_style_guide.py:112
Functiontest_style_guide_manager_pre_file_ignores_parsing
Verify how the StyleGuideManager creates a default style guide.
tests/unit/test_style_guide.py:83
Functiontest_style_guide_manager_style_guide_for
Verify the style guide selection function.
tests/unit/test_style_guide.py:140
Functiontest_styleguide_check_files
Verify we call the right application methods.
tests/unit/test_legacy_api.py:28
Functiontest_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
Functiontest_styleguide_init_report
Verify we do the right incantation for the Application.
tests/unit/test_legacy_api.py:72
← previousnext →401–500 of 526, ranked by callers