MCPcopy Create free account
hub / github.com/astral-sh/ruff / versions

github.com/astral-sh/ruff @0.16.5 → @0.16.6

indexed versions: 0.15.20 · 0.15.21 · 0.15.22 · 0.16.0 · 0.16.1 · 0.16.2 · 0.16.3 · 0.16.4 · 0.16.5 · 0.16.6

588 added 164 removed 73 signature changed

Removed / breaking in @0.16.5, gone in @0.16.6

has_own_parenthesesFunction/ruff_linter/src/rules/ruff/rules/unnecessary_cast_to_int.rs
unwrap_int_expressionFunction/ruff_linter/src/rules/ruff/rules/unnecessary_cast_to_int.rs
unwrap_round_callFunctioncrates/ruff_linter/src/rules/ruff/rules/unnecessary_round.rs
ProgressDisplayClasscrates/ty/src/lib.rs
ScriptSyncProgressBarClasscrates/ty/src/lib.rs
clearMethodcrates/ty/src/lib.rs
finish_checkingMethodcrates/ty/src/lib.rs
command_with_uvFunctioncrates/ty/tests/cli/uv_workspace.rs
assert_uv_supports_script_metadataFunctioncrates/ty/tests/file_watching.rs
setup_script_uvFunctioncrates/ty/tests/file_watching.rs
definitions_for_covering_nodeMethodcrates/ty_ide/src/references.rs
script_environmentsMethodcrates/ty_project/src/db.rs
derefMethodcrates/ty_project/src/files.rs
ProgressReporter.for_scriptMethodcrates/ty_project/src/lib.rs
ScriptSyncProgressInterfacecrates/ty_project/src/lib.rs
has_uv_workspaceMethodcrates/ty_project/src/metadata.rs
with_uv_workspaceMethodcrates/ty_project/src/metadata.rs
InFlightSyncClasscrates/ty_project/src/script/environment.rs
InitializationClaimClasscrates/ty_project/src/script/environment.rs
ScriptEnvironmentClasscrates/ty_project/src/script/environment.rs
ScriptEnvironmentAvailabilityEnumcrates/ty_project/src/script/environment.rs
ScriptEnvironmentEntryClasscrates/ty_project/src/script/environment.rs
ScriptEnvironmentStateEnumcrates/ty_project/src/script/environment.rs
ScriptEnvironmentsClasscrates/ty_project/src/script/environment.rs
ScriptEnvironmentsInnerClasscrates/ty_project/src/script/environment.rs
UvTestCaseClasscrates/ty_project/src/script/environment.rs
apply_sync_resultFunctioncrates/ty_project/src/script/environment.rs
assert_can_importMethodcrates/ty_project/src/script/environment.rs
availabilityMethodcrates/ty_project/src/script/environment.rs
background_result_cancels_snapshots_before_locking_entryFunctioncrates/ty_project/src/script/environment.rs
completeMethodcrates/ty_project/src/script/environment.rs
defaultMethodcrates/ty_project/src/script/environment.rs
dropMethodcrates/ty_project/src/script/environment.rs
entryMethodcrates/ty_project/src/script/environment.rs
environmentMethodcrates/ty_project/src/script/environment.rs
existing_entryMethodcrates/ty_project/src/script/environment.rs
existing_environment_remains_available_during_background_synchronizationFunctioncrates/ty_project/src/script/environment.rs
filesMethodcrates/ty_project/src/script/environment.rs
finishMethodcrates/ty_project/src/script/environment.rs
has_pending_synchronizationsMethodcrates/ty_project/src/script/environment.rs
initial_background_synchronization_is_pending_until_completionFunctioncrates/ty_project/src/script/environment.rs
initialize_blockingMethodcrates/ty_project/src/script/environment.rs
is_enabledMethodcrates/ty_project/src/script/environment.rs
is_initialization_pendingMethodcrates/ty_project/src/script/environment.rs
is_pendingMethodcrates/ty_project/src/script/environment.rs
newMethodcrates/ty_project/src/script/environment.rs
parse_metadata_outputFunctioncrates/ty_project/src/script/environment.rs
poll_syncMethodcrates/ty_project/src/script/environment.rs
request_syncMethodcrates/ty_project/src/script/environment.rs
returning_to_previous_metadata_resynchronizes_the_environmentFunctioncrates/ty_project/src/script/environment.rs
script_environmentFunctioncrates/ty_project/src/script/environment.rs
script_pythonFunctioncrates/ty_project/src/script/environment.rs
script_sync_taskFunctioncrates/ty_project/src/script/environment.rs
semantic_lookup_creates_a_stable_default_environmentFunctioncrates/ty_project/src/script/environment.rs
sync_wakeupsMethodcrates/ty_project/src/script/environment.rs
update_next_requestMethodcrates/ty_project/src/script/environment.rs
wait_for_synchronizationsMethodcrates/ty_project/src/script/environment.rs
wait_until_initializedMethodcrates/ty_project/src/script/environment.rs
MetadataTargetEnumcrates/ty_project/src/uv.rs
UvClasscrates/ty_project/src/uv.rs
executeMethodcrates/ty_project/src/uv.rs
explicit_uv_override_skips_path_lookupFunctioncrates/ty_project/src/uv.rs
metadataMethodcrates/ty_project/src/uv.rs
newMethodcrates/ty_project/src/uv.rs
parse_metadata_outputMethodcrates/ty_project/src/uv.rs
unsupported_command_executionFunctioncrates/ty_project/src/uv.rs
uv_executable_errorFunctioncrates/ty_project/src/uv.rs
ScriptSyncRequestClasscrates/ty_project/src/uv/sync.rs
ScriptSyncRequestDataClasscrates/ty_project/src/uv/sync.rs
ScriptSyncResultClasscrates/ty_project/src/uv/sync.rs
ScriptSyncTaskClasscrates/ty_project/src/uv/sync.rs
UvJobClasscrates/ty_project/src/uv/sync.rs
UvJobCancellationClasscrates/ty_project/src/uv/sync.rs
UvJobCancellationGuardClasscrates/ty_project/src/uv/sync.rs
UvJobModeEnumcrates/ty_project/src/uv/sync.rs
UvSyncServiceClasscrates/ty_project/src/uv/sync.rs
UvWorkerClasscrates/ty_project/src/uv/sync.rs
UvWorkerPoolClasscrates/ty_project/src/uv/sync.rs
cache_keyMethodcrates/ty_project/src/uv/sync.rs
is_cancelledMethodcrates/ty_project/src/uv/sync.rs
newMethodcrates/ty_project/src/uv/sync.rs
pathMethodcrates/ty_project/src/uv/sync.rs
publish_resultMethodcrates/ty_project/src/uv/sync.rs
pythonMethodcrates/ty_project/src/uv/sync.rs
runMethodcrates/ty_project/src/uv/sync.rs
run_blockingMethodcrates/ty_project/src/uv/sync.rs
schedule_oneMethodcrates/ty_project/src/uv/sync.rs
worker_disconnectedFunctioncrates/ty_project/src/uv/sync.rs
worker_poolMethodcrates/ty_project/src/uv/sync.rs
collect_setMethodcrates/ty_project/src/walk.rs
joinsMethodcrates/ty_python_semantic/src/reachability.rs
exists_at_runtimeFunctioncrates/ty_python_semantic/src/types.rs
filter_disjoint_elementsMethodcrates/ty_python_semantic/src/types.rs
try_call_bin_op_return_typeMethodcrates/ty_python_semantic/src/types/call.rs
try_call_bin_op_return_type_implMethodcrates/ty_python_semantic/src/types/call.rs
OverloadCallReturnTypeEnumcrates/ty_python_semantic/src/types/call/bind.rs
iter_union_elementsMethodcrates/ty_python_semantic/src/types/call/bind.rs
variance_of_ownerMethodcrates/ty_python_semantic/src/types/class.rs
variance_of_ownerMethodcrates/ty_python_semantic/src/types/class/static_literal.rs
constraint_ordering_changes_negated_alternative_solutionsFunctioncrates/ty_python_semantic/src/types/constraints.rs

… +64 more

Signature changed

request_checkFunctioncrates/ty/src/lib.rs
hintsFunctioncrates/ty_ide/src/hints.rs
referencesMethodcrates/ty_ide/src/references.rs
references_for_fileFunctioncrates/ty_ide/src/references.rs
references_for_keyword_arguments_in_fileFunctioncrates/ty_ide/src/references.rs
insertMethodcrates/ty_project/src/files.rs
setMethodcrates/ty_project/src/files.rs
add_fileMethodcrates/ty_project/src/lib.rs
discover_with_uv_workspaceMethodcrates/ty_project/src/metadata.rs
rediscoverMethodcrates/ty_project/src/metadata.rs
uv_workspaceMethodcrates/ty_project/src/metadata.rs
build_predicateMethodcrates/ty_python_core/src/builder.rs
visit_bool_expressionMethodcrates/ty_python_core/src/builder.rs
visit_if_expressionMethodcrates/ty_python_core/src/builder.rs
loop_header_reachability_implFunctioncrates/ty_python_semantic/src/place.rs
is_reachability_checkpointFunctioncrates/ty_python_semantic/src/reachability.rs
narrowMethodcrates/ty_python_semantic/src/reachability.rs
projectMethodcrates/ty_python_semantic/src/reachability.rs
determine_upper_boundFunctioncrates/ty_python_semantic/src/types.rs
map_typeMethodcrates/ty_python_semantic/src/types.rs
memberMethodcrates/ty_python_semantic/src/types.rs
member_lookup_resultFunctioncrates/ty_python_semantic/src/types.rs
newMethodcrates/ty_python_semantic/src/types/callable.rs
could_coexist_in_mro_with_implMethodcrates/ty_python_semantic/src/types/class.rs
as_single_boundMethodcrates/ty_python_semantic/src/types/constraints.rs
exactMethodcrates/ty_python_semantic/src/types/constraints.rs
intern_constraint_typevarsMethodcrates/ty_python_semantic/src/types/constraints.rs
lower_boundMethodcrates/ty_python_semantic/src/types/constraints.rs
upper_boundMethodcrates/ty_python_semantic/src/types/constraints.rs
with_source_provenanceMethodcrates/ty_python_semantic/src/types/constraints.rs
with_uncertainMethodcrates/ty_python_semantic/src/types/constraints.rs
newMethodcrates/ty_python_semantic/src/types/cyclic.rs
try_visitMethodcrates/ty_python_semantic/src/types/cyclic.rs
visit_definition_bodyMethodcrates/ty_python_semantic/src/types/cyclic.rs
fixtureMethodcrates/ty_python_semantic/src/types/dedicated/pytest.rs
requestMethodcrates/ty_python_semantic/src/types/dedicated/pytest.rs
definitionMethodcrates/ty_python_semantic/src/types/definition.rs
check_callMethodcrates/ty_python_semantic/src/types/function.rs
with_deprecatedMethodcrates/ty_python_semantic/src/types/function.rs
intersect_pending_typevar_constraintMethodcrates/ty_python_semantic/src/types/generics.rs
check_deprecatedMethodcrates/ty_python_semantic/src/types/infer/builder.rs
infer_chained_boolean_typesMethodcrates/ty_python_semantic/src/types/infer/builder.rs
infer_typealiastype_assignment_deferredMethodcrates/ty_python_semantic/src/types/infer/builder.rs
evaluateMethodhon_semantic/src/types/infer/builder/attribute_assignment.rs
infer_binary_expression_typeMethodython_semantic/src/types/infer/builder/binary_expressions.rs
infer_binary_expression_type_implMethodython_semantic/src/types/infer/builder/binary_expressions.rs
check_import_from_module_is_resolvableMethodcrates/ty_python_semantic/src/types/infer/builder/imports.rs
displayMethodcrates/ty_python_semantic/src/types/relation_error.rs
from_contextMethodcrates/ty_python_semantic/src/types/relation_error.rs
renderMethodcrates/ty_python_semantic/src/types/relation_error.rs
render_treeMethodcrates/ty_python_semantic/src/types/relation_error.rs
variance_ofMethodcrates/ty_python_semantic/src/types/subclass_of.rs
concatMethodcrates/ty_python_semantic/src/types/tuple.rs
pushMethodcrates/ty_python_semantic/src/types/tuple.rs
apply_type_alias_specializationFunctioncrates/ty_python_semantic/src/types/type_alias.rs
unpack_innerMethodcrates/ty_python_semantic/src/types/unpacker.rs
any_over_type_implFunctioncrates/ty_python_semantic/src/types/visitor.rs
runMethodty_server/src/server/api/notifications/did_close_notebook.rs
runMethodcrates/ty_server/src/server/api/notifications/did_save.rs
send_beginMethodcrates/ty_server/src/server/lazy_work_done_progress.rs
apply_changesMethodcrates/ty_server/src/session.rs
closeMethodcrates/ty_server/src/session.rs
open_document_in_dbMethodcrates/ty_server/src/session.rs
open_notebook_documentMethodcrates/ty_server/src/session.rs
open_text_documentMethodcrates/ty_server/src/session.rs
update_in_dbMethodcrates/ty_server/src/session.rs
update_notebook_documentMethodcrates/ty_server/src/session.rs
update_text_documentMethodcrates/ty_server/src/session.rs
initializeMethodcrates/ty_server/tests/e2e/main.rs
newMethodcrates/ty_server/tests/e2e/main.rs
with_initialization_optionsMethodcrates/ty_server/tests/e2e/main.rs
condensed_workspace_diagnostic_snapshotFunctioncrates/ty_server/tests/e2e/workspace_folders.rs
collect_file_statsFunctionscripts/conformance.py

Added new API surface in @0.16.6

benchmark_materialized_recursive_protocol_overloadFunctioncrates/ruff_benchmark/benches/ty.rs
benchmark_nested_recursive_protocol_receiverFunctioncrates/ruff_benchmark/benches/ty.rs
benchmark_repeated_narrowed_assignmentsFunctioncrates/ruff_benchmark/benches/ty.rs
benchmark_repeated_suppressing_context_managersFunctioncrates/ruff_benchmark/benches/ty.rs
benchmark_typed_dict_get_large_literal_unionFunctioncrates/ruff_benchmark/benches/ty.rs
cover_rangeMethodcrates/ruff_db/src/files.rs
test_error_with_multiple_exception_referencesFunction_linter/resources/test/fixtures/flake8_pytest_style/PT017.py
TestClassClass_linter/resources/test/fixtures/flake8_pytest_style/PT020.py
TestClass.error_in_classMethod_linter/resources/test/fixtures/flake8_pytest_style/PT020.py
error_with_argumentsFunction_linter/resources/test/fixtures/flake8_pytest_style/PT020.py
error_with_commentFunction_linter/resources/test/fixtures/flake8_pytest_style/PT020.py
error_with_comment_in_referenceFunction_linter/resources/test/fixtures/flake8_pytest_style/PT020.py
error_aliased_member_importFunctioninter/resources/test/fixtures/flake8_pytest_style/PT020_1.py
error_member_importFunctioninter/resources/test/fixtures/flake8_pytest_style/PT020_1.py
error_aliased_moduleFunctioninter/resources/test/fixtures/flake8_pytest_style/PT020_2.py
fFunctionnter/resources/test/fixtures/isort/fit_line_length_pragma.py
parenthesized_calleeFunctioncrates/ruff_linter/resources/test/fixtures/ruff/RUF046.py
parenthesized_calleeFunctioncrates/ruff_linter/resources/test/fixtures/ruff/RUF057.py
add_commentMethodcrates/ruff_linter/src/line_width.rs
pragma_offset_for_line_lengthFunctioncrates/ruff_linter/src/line_width.rs
is_pragma_excluded_from_import_width_enabledFunctioncrates/ruff_linter/src/preview.rs
is_pt020_fix_enabledFunctioncrates/ruff_linter/src/preview.rs
fix_titleMethodrates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs
no_line_too_long_after_fixFunctioncrates/ruff_linter/src/rules/isort/mod.rs
previewFunctioncrates/ruff_linter/src/rules/isort/mod.rs
is_dotMethodcrates/ruff_python_ast/src/token.rs
is_lbraceMethodcrates/ruff_python_ast/src/token.rs
call_unwrapping_preserves_contextFunctioncrates/ruff_python_edits/src/call.rs
unwrapped_call_argumentFunctioncrates/ruff_python_edits/src/call.rs
SyncProgressClasscrates/ty/src/lib.rs
UvSyncProgressBarClasscrates/ty/src/lib.rs
completedMethodcrates/ty/src/lib.rs
finishedMethodcrates/ty/src/lib.rs
for_projectMethodcrates/ty/src/lib.rs
startMethodcrates/ty/src/lib.rs
startedMethodcrates/ty/src/lib.rs
synchronize_environmentsMethodcrates/ty/src/lib.rs
synchronize_scriptsMethodcrates/ty/src/lib.rs
preview_rule_statusFunctioncrates/ty/tests/cli/rule.rs
indirect_dependencies_use_script_declarationsFunctioncrates/ty/tests/cli/scripts.rs
script_with_indirect_dependencyFunctioncrates/ty/tests/cli/scripts.rs
workspace_dependencies_do_not_apply_to_scriptsFunctioncrates/ty/tests/cli/scripts.rs
dependency_workspace_caseFunctioncrates/ty/tests/cli/uv_workspace.rs
indirect_dependencies_use_updated_declarationsFunctioncrates/ty/tests/cli/uv_workspace.rs
indirect_dependencies_use_uv_module_ownershipFunctioncrates/ty/tests/cli/uv_workspace.rs
overridden_python_environment_disables_dependency_checksFunctioncrates/ty/tests/cli/uv_workspace.rs
uv_commandFunctioncrates/ty/tests/cli/uv_workspace.rs
uv_sync_commandFunctioncrates/ty/tests/cli/uv_workspace.rs
write_dependency_wheelFunctioncrates/ty/tests/cli/uv_workspace.rs
explicitly_included_file_remains_checked_when_becoming_a_scriptFunctioncrates/ty/tests/file_watching.rs
project_refresh_applies_settings_despite_uv_errorsFunctioncrates/ty/tests/file_watching.rs
project_refresh_uses_the_returned_workspace_rootFunctioncrates/ty/tests/file_watching.rs
script_exclusion_tracks_file_creation_and_metadata_editsFunctioncrates/ty/tests/file_watching.rs
scripts_to_synchronize_after_file_and_directory_changesFunctioncrates/ty/tests/file_watching.rs
setup_uvFunctioncrates/ty/tests/file_watching.rs
synchronize_scriptsFunctioncrates/ty/tests/file_watching.rs
update_and_synchronize_projectFunctioncrates/ty/tests/file_watching.rs
wait_for_synchronizationsFunctioncrates/ty/tests/file_watching.rs
from_import_with_bare_annotationFunctioncrates/ty_ide/src/completion.rs
from_import_with_separate_annotation_and_assignmentFunctioncrates/ty_ide/src/completion.rs
from_import_with_type_checking_annotationFunctioncrates/ty_ide/src/completion.rs
ambiguous_pytest_fixture_cursor_testFunctioncrates/ty_ide/src/find_references.rs
explicit_external_stub_fixture_cursor_testFunctioncrates/ty_ide/src/find_references.rs
explicit_fixture_name_at_offsetFunctioncrates/ty_ide/src/find_references.rs
explicit_fixture_name_matching_python_name_keeps_reference_families_separateFunctioncrates/ty_ide/src/find_references.rs
external_stub_fixture_cursor_testFunctioncrates/ty_ide/src/find_references.rs
external_stub_fixture_cursor_test_with_stubFunctioncrates/ty_ide/src/find_references.rs
external_stub_fixture_definition_cursor_testFunctioncrates/ty_ide/src/find_references.rs
pytest_cursor_testFunctioncrates/ty_ide/src/find_references.rs
pytest_cursor_test_builderFunctioncrates/ty_ide/src/find_references.rs
references_ambiguous_pytest_fixture_request_includes_all_targetsFunctioncrates/ty_ide/src/find_references.rs
references_explicit_fixture_name_from_string_tokenFunctioncrates/ty_ide/src/find_references.rs
references_explicit_pytest_fixture_stops_at_external_stubFunctioncrates/ty_ide/src/find_references.rs
references_function_local_fixture_import_as_ordinary_aliasFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_declaration_through_external_stubFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_does_not_expand_through_ambiguous_requestFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_preserves_non_fixture_ambiguous_targetFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_relationships_from_default_nameFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_relationships_from_explicit_nameFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_respect_conftest_shadowingFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_through_annotated_stubFunctioncrates/ty_ide/src/find_references.rs
references_pytest_fixture_through_reexportFunctioncrates/ty_ide/src/find_references.rs
references_pytest_imported_fixture_exposureFunctioncrates/ty_ide/src/find_references.rs
references_pytest_installed_core_fixtureFunctioncrates/ty_ide/src/find_references.rs
FixtureReferenceResolutionClasscrates/ty_ide/src/references.rs
FixtureReferenceTargetClasscrates/ty_ide/src/references.rs
LocalReferenceSearchClasscrates/ty_ide/src/references.rs
collect_fixture_reference_rootsFunctioncrates/ty_ide/src/references.rs
definition_matches_fixture_targetMethodcrates/ty_ide/src/references.rs
extendMethodcrates/ty_ide/src/references.rs
fixture_reference_resolution_for_definitionFunctioncrates/ty_ide/src/references.rs
from_exposureMethodcrates/ty_ide/src/references.rs
from_goto_targetMethodcrates/ty_ide/src/references.rs
goto_target_for_covering_nodeMethodcrates/ty_ide/src/references.rs
references_for_searchFunctioncrates/ty_ide/src/references.rs
script_metadata_distinguishes_numeric_and_datetime_valuesFunctioncrates/ty_ide/src/semantic_tokens.rs
script_metadata_highlights_toml_in_source_orderFunctioncrates/ty_ide/src/semantic_tokens.rs
script_metadata_inside_statement_remains_in_source_orderFunctioncrates/ty_ide/src/semantic_tokens.rs
script_metadata_multiline_strings_exclude_comment_prefixesFunctioncrates/ty_ide/src/semantic_tokens.rs
script_metadata_respects_requested_token_rangeFunctioncrates/ty_ide/src/semantic_tokens.rs

… +488 more