crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

docs: fix duplicate "mode mode" word in crewai-files docstrings

Open kratos0718 opened this issue 6 months ago β€’ 1 comments

Summary

Fixed 8 instances of the accidental duplicate word mode mode across the crewai-files package and its tests. All occurrences were in docstrings (class/method documentation and test descriptions) β€” pure text fixes, no behavior change.

Files changed

File Occurrences
lib/crewai-files/src/crewai_files/core/types.py 1 (in BaseFile class docstring)
lib/crewai-files/src/crewai_files/processing/processor.py 5 (FileProcessor class, _get_mode, process docstrings)
lib/crewai/tests/utilities/test_files.py 2 (test_file_custom_mode, test_file_chunk_mode docstrings)

Example

Before:

class FileProcessor:
    """Processes files according to provider constraints and per-file mode mode."""


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Documentation**
  * Corrected duplicated text in internal code documentation to improve clarity and accuracy.

<!-- review_stack_entry_start -->

[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/crewAIInc/crewAI/pull/5968?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

kratos0718 avatar May 29 '26 04:05 kratos0718

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 91625c12-a17a-45f5-a4ae-4f8243a1c863

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between fca21b155c4f316ee63d4aa1725361aff392e47e and d682e2ae03e254f6b58e9b27d3867a921bb0597f.

πŸ“’ Files selected for processing (3)
  • lib/crewai-files/src/crewai_files/core/types.py
  • lib/crewai-files/src/crewai_files/processing/processor.py
  • lib/crewai/tests/utilities/test_files.py

πŸ“ Walkthrough

Walkthrough

This PR corrects duplicated wording in docstrings across the crewAI file processing components. Erroneous word repetitions ("mode mode", "Per-file mode mode mode") are removed from the BaseFile class, FileProcessor class and methods, and from file mode test docstrings. No functional logic or test behavior was altered.

Changes

Documentation cleanup

Layer / File(s) Summary
Docstring corrections for file mode documentation
lib/crewai-files/src/crewai_files/core/types.py, lib/crewai-files/src/crewai_files/processing/processor.py, lib/crewai/tests/utilities/test_files.py
Removes duplicated wording ("mode mode", "Per-file mode mode mode") from docstrings in BaseFile, FileProcessor class and method descriptions, and mode-related test functions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A docstring fix, so clean and neat, Removed the words that did repeat, "Mode mode mode" now just "mode" stands tall, The tidiest cleanup of all!

πŸš₯ Pre-merge checks | βœ… 5
βœ… Passed checks (5 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check βœ… Passed The title accurately describes the main change: fixing duplicate 'mode mode' words in crewai-files docstrings, which aligns with all file modifications.
Docstring Coverage βœ… Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check βœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check βœ… Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • [ ] Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar May 29 '26 04:05 coderabbitai[bot]