Skip to content

Prevent duplicate file processing #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

anishkny
Copy link

This pull request adds a processed_paths set to handle cases where users may inadvertently specify duplicate file paths. It ensures that each file is processed only once, even if provided multiple times.

Key Changes:

  • processed_paths Set: Tracks file paths to avoid re-processing.
  • File Path Check: Skips files already processed, ensuring no duplicates are handled.
  • Reset for Tests: Clears processed_paths at the start of the cli function for proper test execution.

Reasoning:

To prevent redundant file processing when users provide duplicate paths, improving efficiency and robustness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant