sarj-python-lint 1.111.1__tar.gz → 1.115.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/PKG-INFO +3 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/pyproject.toml +3 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/__main__.py +16 -23
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_file_context.py +5 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rule_base.py +39 -26
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +2 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +3 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_transactional_sql.py +4 -4
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_async_function_cache.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +3 -4
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_database_programmability.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_delete_statement.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +2 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_partial_type_is.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_recording_store.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_test_comments.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +2 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +2 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +1 -1
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +2 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +3 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_str_enum.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +1 -1
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +2 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +3 -4
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +1 -1
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +1 -3
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +1 -2
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +1 -1
- sarj_python_lint-1.115.0/src/sarj_python_lint/sql_literals.py +435 -0
- sarj_python_lint-1.111.1/src/sarj_python_lint/rules/_postgres_ctas.py +0 -215
- sarj_python_lint-1.111.1/src/sarj_python_lint/rules/_sql_aggregate_identity.py +0 -356
- sarj_python_lint-1.111.1/src/sarj_python_lint/rules/_sql_explain.py +0 -140
- sarj_python_lint-1.111.1/src/sarj_python_lint/rules/_sql_policy_source.py +0 -32
- sarj_python_lint-1.111.1/src/sarj_python_lint/sql_literals.py +0 -119
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/.gitignore +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/LICENSE +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/README.md +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_security.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_parallel.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_python_target.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/benchmark.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_comments.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_registry.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.111.1 → sarj_python_lint-1.115.0}/src/sarj_python_lint/suppression_policy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sarj-python-lint
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.115.0
|
|
4
4
|
Summary: Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults
|
|
5
5
|
Project-URL: Homepage, https://code-standards.sarj.ai/rules/python/
|
|
6
6
|
Project-URL: Documentation, https://code-standards.sarj.ai/rules/python/
|
|
@@ -19,7 +19,8 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
19
19
|
Requires-Python: >=3.14
|
|
20
20
|
Requires-Dist: packaging==26.3
|
|
21
21
|
Requires-Dist: ruff>=0.17.2
|
|
22
|
-
Requires-Dist: sarj-rule-contracts==0.
|
|
22
|
+
Requires-Dist: sarj-rule-contracts==0.7.0
|
|
23
|
+
Requires-Dist: sarj-sql-lint==0.45.0
|
|
23
24
|
Requires-Dist: sqlglot==30.24.0
|
|
24
25
|
Requires-Dist: typer==0.27.3
|
|
25
26
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sarj-python-lint"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.115.0"
|
|
4
4
|
description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "sarj-ai" }]
|
|
@@ -15,7 +15,7 @@ classifiers = [
|
|
|
15
15
|
"Programming Language :: Python :: 3.14",
|
|
16
16
|
"Topic :: Software Development :: Quality Assurance",
|
|
17
17
|
]
|
|
18
|
-
dependencies = ["sarj-rule-contracts==0.
|
|
18
|
+
dependencies = ["sarj-rule-contracts==0.7.0", "sarj-sql-lint==0.45.0", "packaging==26.3", "ruff>=0.17.2", "sqlglot==30.24.0", "typer==0.27.3"]
|
|
19
19
|
|
|
20
20
|
[project.scripts]
|
|
21
21
|
sarj-python-lint = "sarj_python_lint.__main__:main"
|
|
@@ -72,4 +72,5 @@ extend = "../../.ruff-strict.toml"
|
|
|
72
72
|
DEP002 = ["ruff"]
|
|
73
73
|
|
|
74
74
|
[tool.uv.sources]
|
|
75
|
+
sarj-sql-lint = { path = "../sql", editable = true }
|
|
75
76
|
sarj-rule-contracts = { path = "../contracts", editable = true }
|
|
@@ -4,14 +4,14 @@ import ast
|
|
|
4
4
|
from collections import Counter
|
|
5
5
|
from contextlib import suppress
|
|
6
6
|
from dataclasses import dataclass
|
|
7
|
-
from fnmatch import fnmatch
|
|
8
7
|
import json
|
|
9
8
|
from pathlib import Path
|
|
9
|
+
import stat
|
|
10
10
|
import sys
|
|
11
11
|
from types import MappingProxyType
|
|
12
12
|
from typing import TYPE_CHECKING, Annotated, NamedTuple
|
|
13
13
|
|
|
14
|
-
from sarj_rule_contracts import RuleId
|
|
14
|
+
from sarj_rule_contracts import RuleId, iter_source_files
|
|
15
15
|
import typer
|
|
16
16
|
|
|
17
17
|
from sarj_python_lint import __version__
|
|
@@ -19,7 +19,7 @@ from sarj_python_lint._filesystem import atomic_write_text
|
|
|
19
19
|
from sarj_python_lint._prepared_sources import PreparedSourceInputs
|
|
20
20
|
from sarj_python_lint._source import read_python_source
|
|
21
21
|
from sarj_python_lint.json_boundary import is_object_mapping, parse_json
|
|
22
|
-
from sarj_python_lint.rule_base import Diagnostic, DiagnosticSubject, ProjectRule, Rule, Severity
|
|
22
|
+
from sarj_python_lint.rule_base import Diagnostic, DiagnosticSubject, ProjectRule, Rule, Severity
|
|
23
23
|
from sarj_python_lint.suppression_policy import PROTECTED_SUPPRESSION_CODES
|
|
24
24
|
|
|
25
25
|
|
|
@@ -76,8 +76,8 @@ SKIP_DIR_NAMES = frozenset(
|
|
|
76
76
|
_MAX_FILE_BYTES = 500_000
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
def _checked_size(path: Path) -> Path:
|
|
80
|
-
if
|
|
79
|
+
def _checked_size(path: Path, size: int) -> Path:
|
|
80
|
+
if size > _MAX_FILE_BYTES:
|
|
81
81
|
msg = f"selected Python source exceeds {_MAX_FILE_BYTES} bytes: {path}; use an explicit path exclusion for generated source"
|
|
82
82
|
raise ValueError(msg)
|
|
83
83
|
return path
|
|
@@ -86,29 +86,23 @@ def _checked_size(path: Path) -> Path:
|
|
|
86
86
|
def expand_paths(paths: list[Path]) -> list[Path]:
|
|
87
87
|
out: list[Path] = []
|
|
88
88
|
for p in paths:
|
|
89
|
-
|
|
89
|
+
try:
|
|
90
|
+
metadata = p.stat()
|
|
91
|
+
except FileNotFoundError as exc:
|
|
90
92
|
msg = f"input does not exist: {p}"
|
|
91
|
-
raise ValueError(msg)
|
|
92
|
-
if
|
|
93
|
-
out.append(_checked_size(p))
|
|
93
|
+
raise ValueError(msg) from exc
|
|
94
|
+
if stat.S_ISREG(metadata.st_mode):
|
|
95
|
+
out.append(_checked_size(p, metadata.st_size))
|
|
94
96
|
continue
|
|
95
97
|
out.extend(_python_files(p))
|
|
96
98
|
return out
|
|
97
99
|
|
|
98
100
|
|
|
99
101
|
def _python_files(p: Path) -> list[Path]:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
directories[:] = [name for name in directories if name not in SKIP_DIR_NAMES]
|
|
105
|
-
for name in filenames:
|
|
106
|
-
if not fnmatch(name, "*.py") and not fnmatch(name, "*.pyi"):
|
|
107
|
-
continue
|
|
108
|
-
child = directory / name
|
|
109
|
-
if child.is_file():
|
|
110
|
-
out.append(_checked_size(child))
|
|
111
|
-
return sorted(out)
|
|
102
|
+
return sorted(
|
|
103
|
+
_checked_size(child, child.stat().st_size)
|
|
104
|
+
for child in iter_source_files(p, suffixes=frozenset({".py", ".pyi"}), skip_dirs=SKIP_DIR_NAMES)
|
|
105
|
+
)
|
|
112
106
|
|
|
113
107
|
|
|
114
108
|
def _canonical_rule_ids(rule_names: Sequence[str]) -> list[RuleId]:
|
|
@@ -229,10 +223,9 @@ def check_context(rules: list[Rule], context: PythonFileContext) -> list[Diagnos
|
|
|
229
223
|
if rules and context.tree is None:
|
|
230
224
|
msg = f"selected Python source could not be parsed: {context.path}"
|
|
231
225
|
raise ValueError(msg)
|
|
232
|
-
source_lines = context.source_lines
|
|
233
226
|
raw = [diagnostic for rule in rules for diagnostic in rule.check_context(context)]
|
|
234
227
|
return deduplicate_diagnostics(
|
|
235
|
-
[diagnostic for diagnostic in raw if not is_suppressed(
|
|
228
|
+
[diagnostic for diagnostic in raw if not context.suppressions.is_suppressed(diagnostic.line, diagnostic.code)],
|
|
236
229
|
source=context.source,
|
|
237
230
|
context=context,
|
|
238
231
|
)
|
|
@@ -6,6 +6,7 @@ from typing import TYPE_CHECKING, final
|
|
|
6
6
|
|
|
7
7
|
from sarj_python_lint._analysis_session import AnalysisSession
|
|
8
8
|
from sarj_python_lint._source import python_source_lines, symbol_prefilter_source
|
|
9
|
+
from sarj_python_lint.rule_base import SuppressionIndex
|
|
9
10
|
from sarj_python_lint.rules._annotation_semantics import AnnotationSemantics
|
|
10
11
|
from sarj_python_lint.rules._ast_index import NodeIndex
|
|
11
12
|
from sarj_python_lint.rules._binding_inventory import BindingInventory
|
|
@@ -53,6 +54,10 @@ class PythonFileContext:
|
|
|
53
54
|
def source_lines(self) -> list[str]:
|
|
54
55
|
return python_source_lines(self.source)
|
|
55
56
|
|
|
57
|
+
@cached_property
|
|
58
|
+
def suppressions(self) -> SuppressionIndex:
|
|
59
|
+
return SuppressionIndex(self.source_lines)
|
|
60
|
+
|
|
56
61
|
@cached_property
|
|
57
62
|
def generated(self) -> bool:
|
|
58
63
|
return is_generated(self.path, self.source)
|
|
@@ -6,7 +6,7 @@ from dataclasses import dataclass, field
|
|
|
6
6
|
from enum import StrEnum
|
|
7
7
|
from pathlib import Path
|
|
8
8
|
import re
|
|
9
|
-
from typing import TYPE_CHECKING, ClassVar, Final
|
|
9
|
+
from typing import TYPE_CHECKING, ClassVar, Final, final
|
|
10
10
|
|
|
11
11
|
from sarj_rule_contracts import (
|
|
12
12
|
AutofixPolicy as AutofixPolicy,
|
|
@@ -26,7 +26,7 @@ from sarj_python_lint.suppression_policy import PROTECTED_SUPPRESSION_CODES
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
if TYPE_CHECKING:
|
|
29
|
-
from collections.abc import Sequence
|
|
29
|
+
from collections.abc import Mapping, Sequence
|
|
30
30
|
|
|
31
31
|
from sarj_python_lint._analysis_session import AnalysisSession
|
|
32
32
|
from sarj_python_lint._file_context import PythonFileContext
|
|
@@ -46,30 +46,43 @@ _SARJ_NOQA_RE = re.compile(
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
def is_suppressed(source_lines: Sequence[str], line: int, code: str) -> bool:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
49
|
+
return SuppressionIndex(source_lines).is_suppressed(line, code)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@final
|
|
53
|
+
class SuppressionIndex:
|
|
54
|
+
__slots__ = ("_comments", "_source_lines")
|
|
55
|
+
|
|
56
|
+
def __init__(self, source_lines: Sequence[str]) -> None:
|
|
57
|
+
self._source_lines = source_lines
|
|
58
|
+
self._comments: Mapping[int, str] | None = None
|
|
59
|
+
|
|
60
|
+
def is_suppressed(self, line: int, code: str) -> bool:
|
|
61
|
+
normalized_code = code.upper()
|
|
62
|
+
if normalized_code in PROTECTED_SUPPRESSION_CODES or line < 1 or line > len(self._source_lines):
|
|
63
|
+
return False
|
|
64
|
+
if not _SARJ_NOQA_RE.search(self._source_lines[line - 1]):
|
|
65
|
+
return False
|
|
66
|
+
if self._comments is None:
|
|
67
|
+
from sarj_python_lint.rules._suppression_comments import comment_lines # ruff: ignore[import-outside-top-level] -- comment scanner depends on rule_base.
|
|
68
|
+
|
|
69
|
+
self._comments = comment_lines(tuple(self._source_lines))
|
|
70
|
+
comment = self._comments.get(line, "")
|
|
71
|
+
match = _SARJ_NOQA_RE.search(comment)
|
|
72
|
+
if match is None:
|
|
73
|
+
return False
|
|
74
|
+
codes_str = match.group(1)
|
|
75
|
+
trailing = comment[match.end() :]
|
|
76
|
+
if codes_str is None:
|
|
77
|
+
return False
|
|
78
|
+
reason = trailing.lstrip()
|
|
79
|
+
single_dash_reason = reason.startswith("-") and (codes_str[-1:].isspace() or trailing[:1].isspace())
|
|
80
|
+
if reason and not reason.startswith(("--", "—", "–")) and not single_dash_reason:
|
|
81
|
+
return False
|
|
82
|
+
parts = tuple(part.strip() for part in codes_str.split(","))
|
|
83
|
+
if any(not part for part in parts):
|
|
84
|
+
return False
|
|
85
|
+
return normalized_code in {part.upper() for part in parts}
|
|
73
86
|
|
|
74
87
|
|
|
75
88
|
class ColumnEncoding(StrEnum):
|
|
@@ -4,7 +4,7 @@ import ast
|
|
|
4
4
|
from dataclasses import dataclass
|
|
5
5
|
from typing import TYPE_CHECKING, final
|
|
6
6
|
|
|
7
|
-
from sarj_python_lint.rule_base import Diagnostic, Severity
|
|
7
|
+
from sarj_python_lint.rule_base import Diagnostic, Severity
|
|
8
8
|
from sarj_python_lint.rules._imports import TYPING_SOURCES
|
|
9
9
|
from sarj_python_lint.rules._pydantic_field_contract import MODEL_SOURCES, unique_members
|
|
10
10
|
from sarj_python_lint.rules._resource_provenance import ResourceProvenance
|
|
@@ -115,7 +115,7 @@ class _DataUnions:
|
|
|
115
115
|
findings: list[Diagnostic] = []
|
|
116
116
|
for name, value in self.aliases.items():
|
|
117
117
|
node = self.declarations[name]
|
|
118
|
-
if
|
|
118
|
+
if self.context.suppressions.is_suppressed(node.lineno, code) or not self._untagged_union(value):
|
|
119
119
|
continue
|
|
120
120
|
findings.append(
|
|
121
121
|
Diagnostic(
|
|
@@ -4,7 +4,7 @@ import ast
|
|
|
4
4
|
from dataclasses import dataclass
|
|
5
5
|
from typing import TYPE_CHECKING
|
|
6
6
|
|
|
7
|
-
from sarj_python_lint.rule_base import Diagnostic, Severity
|
|
7
|
+
from sarj_python_lint.rule_base import Diagnostic, Severity
|
|
8
8
|
from sarj_python_lint.rules._annotation_semantics import AnnotationSemantics
|
|
9
9
|
from sarj_python_lint.rules._closed_helpers import call_matches
|
|
10
10
|
from sarj_python_lint.rules._declared_contracts import DeclaredClass, DeclaredContracts, ordinary_pytest_test
|
|
@@ -70,8 +70,8 @@ class FixtureContractParameters:
|
|
|
70
70
|
for parameter in parameters:
|
|
71
71
|
if (
|
|
72
72
|
parameter.annotation is None
|
|
73
|
-
or
|
|
74
|
-
or
|
|
73
|
+
or self.context.suppressions.is_suppressed(function.lineno, code)
|
|
74
|
+
or self.context.suppressions.is_suppressed(parameter.lineno, code)
|
|
75
75
|
):
|
|
76
76
|
continue
|
|
77
77
|
implementation = self._instance(parameter.annotation, self.contracts.unit)
|
|
@@ -5,10 +5,10 @@ from dataclasses import dataclass
|
|
|
5
5
|
import re
|
|
6
6
|
from typing import TYPE_CHECKING
|
|
7
7
|
|
|
8
|
+
from sarj_sql_lint.postgres_policy import aggregate_name, normalize_group_comments
|
|
9
|
+
|
|
8
10
|
from sarj_python_lint.rules._ast_index import walk
|
|
9
11
|
from sarj_python_lint.rules._sql import sql_string_value
|
|
10
|
-
from sarj_python_lint.rules._sql_aggregate_identity import aggregate_name
|
|
11
|
-
from sarj_python_lint.rules._sql_policy_source import normalize_group_comments
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
if TYPE_CHECKING:
|
|
@@ -134,11 +134,11 @@ def _prepared_sql(sql: str, dialect: str) -> str:
|
|
|
134
134
|
parameters.sub(lambda match: ("%" if match.group() == "%%" else "?").ljust(len(match.group())), sql),
|
|
135
135
|
)
|
|
136
136
|
if dialect == "postgres":
|
|
137
|
-
from
|
|
137
|
+
from sarj_sql_lint.postgres_policy import normalize_postgres_ctas # ruff: ignore[import-outside-top-level] -- recover PostgreSQL temporary-table queries only after the SELECT gate.
|
|
138
138
|
|
|
139
139
|
prepared = normalize_postgres_ctas(prepared)
|
|
140
140
|
if "EXPLAIN" in prepared.upper():
|
|
141
|
-
from
|
|
141
|
+
from sarj_sql_lint.postgres_policy import normalize_postgres_explain # ruff: ignore[import-outside-top-level] -- only executing EXPLAIN needs native token normalization.
|
|
142
142
|
|
|
143
143
|
prepared = normalize_postgres_ctas(normalize_postgres_explain(prepared))
|
|
144
144
|
if "GROUP" in prepared.upper() and ("/*" in prepared or "--" in prepared):
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
|
|
20
19
|
|
|
@@ -75,7 +74,7 @@ class AsyncCleanupRegisteredSynchronously(Rule):
|
|
|
75
74
|
provenance = context.static_resource_provenance
|
|
76
75
|
findings: list[Diagnostic] = []
|
|
77
76
|
for call in context.nodes(ast.Call):
|
|
78
|
-
if not _wrong_callback(call, provenance) or is_suppressed(
|
|
77
|
+
if not _wrong_callback(call, provenance) or context.suppressions.is_suppressed(call.lineno, self.code):
|
|
79
78
|
continue
|
|
80
79
|
findings.append(
|
|
81
80
|
Diagnostic(
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._async_lifecycle import AsyncApiProof, method_receiver
|
|
20
19
|
|
|
@@ -87,7 +86,7 @@ class AsyncExecutorShutdown(Rule):
|
|
|
87
86
|
value = assigned.value
|
|
88
87
|
if not isinstance(value, ast.Call) or not any(proof.imported(value.func, name) for name in _EXECUTORS):
|
|
89
88
|
continue
|
|
90
|
-
if not _unchanged_receiver(proof, binding) or is_suppressed(
|
|
89
|
+
if not _unchanged_receiver(proof, binding) or context.suppressions.is_suppressed(call.lineno, self.code):
|
|
91
90
|
continue
|
|
92
91
|
diagnostics.append(
|
|
93
92
|
Diagnostic(
|
|
@@ -16,7 +16,6 @@ from sarj_python_lint.rule_base import (
|
|
|
16
16
|
RuleDocumentation,
|
|
17
17
|
RuleExample,
|
|
18
18
|
Severity,
|
|
19
|
-
is_suppressed,
|
|
20
19
|
)
|
|
21
20
|
from sarj_python_lint.rules._ast_index import walk as walk_ast
|
|
22
21
|
from sarj_python_lint.rules._imports import ImportIndex
|
|
@@ -306,7 +305,7 @@ def _test_diagnostics(
|
|
|
306
305
|
message=message,
|
|
307
306
|
)
|
|
308
307
|
for call in calls
|
|
309
|
-
if not is_suppressed(
|
|
308
|
+
if not context.suppressions.is_suppressed(call.lineno, code)
|
|
310
309
|
]
|
|
311
310
|
|
|
312
311
|
|
|
@@ -15,7 +15,6 @@ from sarj_python_lint.rule_base import (
|
|
|
15
15
|
RuleDocumentation,
|
|
16
16
|
RuleExample,
|
|
17
17
|
Severity,
|
|
18
|
-
is_suppressed,
|
|
19
18
|
)
|
|
20
19
|
from sarj_python_lint.rules._async_lifecycle import AsyncApiProof, method_receiver
|
|
21
20
|
|
|
@@ -100,7 +99,7 @@ def _async_process_diagnostics(context: PythonFileContext, code: str) -> list[Di
|
|
|
100
99
|
continue
|
|
101
100
|
binding = candidate.binding
|
|
102
101
|
call = candidate.call
|
|
103
|
-
if binding in reported or is_suppressed(
|
|
102
|
+
if binding in reported or context.suppressions.is_suppressed(call.lineno, code):
|
|
104
103
|
continue
|
|
105
104
|
reported.add(binding)
|
|
106
105
|
findings.append(
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._async_lifecycle import AsyncApiProof, method_receiver
|
|
20
19
|
|
|
@@ -82,7 +81,7 @@ class CancelOwnedTaskWithoutJoin(Rule):
|
|
|
82
81
|
reported: set[ast.Name] = set()
|
|
83
82
|
for call in context.nodes(ast.Call):
|
|
84
83
|
binding = _unjoined_child(proof, call)
|
|
85
|
-
if binding is None or binding in reported or is_suppressed(
|
|
84
|
+
if binding is None or binding in reported or context.suppressions.is_suppressed(call.lineno, self.code):
|
|
86
85
|
continue
|
|
87
86
|
reported.add(binding)
|
|
88
87
|
diagnostics.append(
|
|
@@ -21,7 +21,6 @@ from sarj_python_lint.rule_base import (
|
|
|
21
21
|
RuleDocumentation,
|
|
22
22
|
RuleExample,
|
|
23
23
|
Severity,
|
|
24
|
-
is_suppressed,
|
|
25
24
|
)
|
|
26
25
|
from sarj_python_lint.rules._closed_helpers import dynamic_namespace, stable_class
|
|
27
26
|
from sarj_python_lint.rules._paths import is_generated
|
|
@@ -144,7 +143,7 @@ class DuplicateAdjacentExceptionHandler(ProjectRule):
|
|
|
144
143
|
for handler in statement.handlers:
|
|
145
144
|
safe = _safe_types(handler.type, context, provenance, project, unit, seen=set())
|
|
146
145
|
if previous is not None and safe and _same_translation(previous, handler, comments):
|
|
147
|
-
if not reported and not is_suppressed(
|
|
146
|
+
if not reported and not context.suppressions.is_suppressed(handler.lineno, self.code):
|
|
148
147
|
findings.append(
|
|
149
148
|
Diagnostic(
|
|
150
149
|
path=context.path,
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._closed_helpers import call_matches, closed_references, direct_call, executable_body
|
|
20
19
|
|
|
@@ -117,7 +116,7 @@ class DuplicateClosedPureHelper(Rule):
|
|
|
117
116
|
)
|
|
118
117
|
if key not in owners:
|
|
119
118
|
owners[key] = function
|
|
120
|
-
elif not is_suppressed(
|
|
119
|
+
elif not context.suppressions.is_suppressed(function.lineno, self.code):
|
|
121
120
|
findings.append(
|
|
122
121
|
Diagnostic(
|
|
123
122
|
path=context.path,
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._ast_index import walk as walk_ast
|
|
20
19
|
from sarj_python_lint.rules._paths import is_test_path
|
|
@@ -95,7 +94,7 @@ class DuplicatePytestFixtureParams(Rule):
|
|
|
95
94
|
if key is None:
|
|
96
95
|
continue
|
|
97
96
|
first = first_values.setdefault(key, value)
|
|
98
|
-
if first is value or is_suppressed(
|
|
97
|
+
if first is value or context.suppressions.is_suppressed(value.lineno, self.code):
|
|
99
98
|
continue
|
|
100
99
|
findings.append(
|
|
101
100
|
Diagnostic(
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._numeric_proof import (
|
|
20
19
|
assignment,
|
|
@@ -124,7 +123,7 @@ class FailedProbeZeroThreshold(Rule):
|
|
|
124
123
|
fallback = _accepted_failure_fallback(context, branch)
|
|
125
124
|
if fallback is None:
|
|
126
125
|
continue
|
|
127
|
-
if is_suppressed(
|
|
126
|
+
if context.suppressions.is_suppressed(fallback.lineno, self.code):
|
|
128
127
|
continue
|
|
129
128
|
findings.append(
|
|
130
129
|
Diagnostic(
|
|
@@ -16,7 +16,6 @@ from sarj_python_lint.rule_base import (
|
|
|
16
16
|
RuleDocumentation,
|
|
17
17
|
RuleExample,
|
|
18
18
|
Severity,
|
|
19
|
-
is_suppressed,
|
|
20
19
|
)
|
|
21
20
|
from sarj_python_lint.rules._numeric_proof import (
|
|
22
21
|
imported_api,
|
|
@@ -122,7 +121,7 @@ class NanHiddenByBuiltinMin(Rule):
|
|
|
122
121
|
reduced = _unchecked_nan_reduction(context, branch, checked)
|
|
123
122
|
if reduced is None:
|
|
124
123
|
continue
|
|
125
|
-
if is_suppressed(
|
|
124
|
+
if context.suppressions.is_suppressed(reduced.lineno, self.code):
|
|
126
125
|
continue
|
|
127
126
|
key = reduced.lineno, reduced.col_offset
|
|
128
127
|
findings[key] = Diagnostic(
|
|
@@ -17,7 +17,6 @@ from sarj_python_lint.rule_base import (
|
|
|
17
17
|
RuleDocumentation,
|
|
18
18
|
RuleExample,
|
|
19
19
|
Severity,
|
|
20
|
-
is_suppressed,
|
|
21
20
|
)
|
|
22
21
|
from sarj_python_lint.rules._annotation_semantics import AnnotationSemantics, scope_bound_names
|
|
23
22
|
from sarj_python_lint.rules._ast_index import walk as walk_ast
|
|
@@ -192,7 +191,6 @@ class NoAnyMappingTypes(Rule):
|
|
|
192
191
|
):
|
|
193
192
|
return []
|
|
194
193
|
scope_cache: dict[int, frozenset[str]] = {}
|
|
195
|
-
lines = context.source_lines
|
|
196
194
|
findings: list[Diagnostic] = []
|
|
197
195
|
seen: set[tuple[int, int]] = set()
|
|
198
196
|
expressions = [
|
|
@@ -202,7 +200,7 @@ class NoAnyMappingTypes(Rule):
|
|
|
202
200
|
for expression, owner in expressions:
|
|
203
201
|
for mapping, location in _unshadowed_any_mappings(expression, owner, semantics, parents, scope_cache):
|
|
204
202
|
key = (location.lineno, location.col_offset)
|
|
205
|
-
if key in seen or is_suppressed(
|
|
203
|
+
if key in seen or context.suppressions.is_suppressed(location.lineno, self.code):
|
|
206
204
|
continue
|
|
207
205
|
seen.add(key)
|
|
208
206
|
findings.append(
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._ast_index import has_own_yield
|
|
20
19
|
from sarj_python_lint.rules._resource_provenance import import_name_for_binding
|
|
@@ -104,7 +103,7 @@ class NoAsyncClientInConstructor(Rule):
|
|
|
104
103
|
for call in context.nodes(ast.Call)
|
|
105
104
|
if _in_constructor(context, call, constructors)
|
|
106
105
|
and _allocates(context, call, follow_factory=True, factories=factories)
|
|
107
|
-
and not is_suppressed(
|
|
106
|
+
and not context.suppressions.is_suppressed(call.lineno, self.code)
|
|
108
107
|
]
|
|
109
108
|
return sorted(findings, key=lambda finding: (finding.line, finding.col))
|
|
110
109
|
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._ast_index import has_own_yield
|
|
20
19
|
from sarj_python_lint.rules._imports import ambiguous_import_names as _nested_import_names
|
|
@@ -97,7 +96,7 @@ class NoAsyncFunctionCache(Rule):
|
|
|
97
96
|
if (
|
|
98
97
|
not _is_coroutine_cache(decorator, context.imports, shadowed)
|
|
99
98
|
or has_own_yield(function)
|
|
100
|
-
or is_suppressed(
|
|
99
|
+
or context.suppressions.is_suppressed(decorator.lineno, self.code)
|
|
101
100
|
):
|
|
102
101
|
continue
|
|
103
102
|
target = decorator.func if isinstance(decorator, ast.Call) else decorator
|
|
@@ -13,7 +13,6 @@ from sarj_python_lint.rule_base import (
|
|
|
13
13
|
RuleDocumentation,
|
|
14
14
|
RuleExample,
|
|
15
15
|
Severity,
|
|
16
|
-
is_suppressed,
|
|
17
16
|
)
|
|
18
17
|
|
|
19
18
|
|
|
@@ -119,5 +118,5 @@ class NoBeforeValidatorInputMutation(Rule):
|
|
|
119
118
|
severity=Severity.ERROR,
|
|
120
119
|
)
|
|
121
120
|
for node in (mutation.node for mutation in context.copy_on_write.mutations if mutation.before_validator)
|
|
122
|
-
if not is_suppressed(
|
|
121
|
+
if not context.suppressions.is_suppressed(node.lineno, self.code)
|
|
123
122
|
]
|
|
@@ -19,7 +19,6 @@ from sarj_python_lint.rule_base import (
|
|
|
19
19
|
RuleDocumentation,
|
|
20
20
|
RuleExample,
|
|
21
21
|
Severity,
|
|
22
|
-
is_suppressed,
|
|
23
22
|
)
|
|
24
23
|
from sarj_python_lint.rules._annotation_semantics import AnnotationSemantics, scope_bound_names
|
|
25
24
|
from sarj_python_lint.rules._ast_index import walk
|
|
@@ -213,8 +212,8 @@ class NoBroadKeywordCapture(Rule):
|
|
|
213
212
|
if function in overloads:
|
|
214
213
|
continue
|
|
215
214
|
if (
|
|
216
|
-
is_suppressed(
|
|
217
|
-
or is_suppressed(
|
|
215
|
+
context.suppressions.is_suppressed(argument.lineno, self.code)
|
|
216
|
+
or context.suppressions.is_suppressed(function.lineno, self.code)
|
|
218
217
|
or _signature_end_suppressed(function, context, self.code)
|
|
219
218
|
):
|
|
220
219
|
continue
|
|
@@ -247,7 +246,7 @@ def _signature_end_suppressed(
|
|
|
247
246
|
line = _signature_end_line(header, function.lineno)
|
|
248
247
|
except tokenize.TokenError, SyntaxError:
|
|
249
248
|
return False
|
|
250
|
-
return line is not None and is_suppressed(
|
|
249
|
+
return line is not None and context.suppressions.is_suppressed(line, code)
|
|
251
250
|
|
|
252
251
|
|
|
253
252
|
def _signature_end_line(header: list[str], start_line: int) -> int | None:
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._pydantic_field_contract import direct_models, has_alias_validation_options, unique_members
|
|
20
19
|
|
|
@@ -96,7 +95,7 @@ class NoConflictingPydanticAliasValidation(Rule):
|
|
|
96
95
|
options = _literal_options(value, context)
|
|
97
96
|
if options is None or not all(_is_false(options.get(flag)) for flag in _FLAGS):
|
|
98
97
|
continue
|
|
99
|
-
if is_suppressed(
|
|
98
|
+
if context.suppressions.is_suppressed(member.lineno, self.code):
|
|
100
99
|
continue
|
|
101
100
|
diagnostics.append(
|
|
102
101
|
Diagnostic(
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._closed_helpers import executable_body
|
|
20
19
|
from sarj_python_lint.rules._imports import TYPING_SOURCES
|
|
@@ -141,7 +140,7 @@ class NoContradictoryTypeGuard(Rule):
|
|
|
141
140
|
if not isinstance(function, ast.FunctionDef) or function.name not in unique_names:
|
|
142
141
|
continue
|
|
143
142
|
statement = _contradictory_return(function, context)
|
|
144
|
-
if statement is None or is_suppressed(
|
|
143
|
+
if statement is None or context.suppressions.is_suppressed(statement.lineno, self.code):
|
|
145
144
|
continue
|
|
146
145
|
findings.append(
|
|
147
146
|
Diagnostic(
|
|
@@ -14,7 +14,6 @@ from sarj_python_lint.rule_base import (
|
|
|
14
14
|
RuleDocumentation,
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
|
-
is_suppressed,
|
|
18
17
|
)
|
|
19
18
|
from sarj_python_lint.rules._ast_index import has_own_yield
|
|
20
19
|
from sarj_python_lint.rules._paths import is_test_path
|
|
@@ -136,7 +135,7 @@ class NoCustomControlFlowException(Rule):
|
|
|
136
135
|
for marker in markers.values():
|
|
137
136
|
if marker not in raised_markers:
|
|
138
137
|
continue
|
|
139
|
-
if is_suppressed(
|
|
138
|
+
if context.suppressions.is_suppressed(marker.lineno, self.code):
|
|
140
139
|
continue
|
|
141
140
|
findings.append(
|
|
142
141
|
Diagnostic(
|