Skip to content
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

docs: improve documentation for clarity #37

Merged
merged 5 commits into from
Mar 11, 2025
Merged

Conversation

thalissonvs
Copy link
Owner

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Mar 10, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Flag Coverage Δ
tests 97.31% <100.00%> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
pydoll/browser/base.py 97.69% <100.00%> (+0.49%) ⬆️
pydoll/browser/chrome.py 96.00% <100.00%> (+2.66%) ⬆️
pydoll/browser/managers.py 98.75% <ø> (ø)
pydoll/browser/page.py 95.63% <100.00%> (-0.20%) ⬇️
pydoll/commands/dom.py 100.00% <ø> (ø)
pydoll/commands/network.py 100.00% <ø> (ø)
pydoll/commands/runtime.py 100.00% <ø> (ø)
pydoll/commands/storage.py 100.00% <ø> (ø)
pydoll/commands/target.py 100.00% <ø> (ø)
pydoll/connection/connection.py 98.38% <ø> (ø)
... and 3 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thalissonvs thalissonvs self-assigned this Mar 10, 2025
@thalissonvs thalissonvs added the documentation Improvements or additions to documentation label Mar 10, 2025
@thalissonvs thalissonvs requested a review from Copilot March 10, 2025 01:38

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR improves documentation clarity across multiple modules by enhancing docstrings and inline comments. The changes update and standardize documentation in modules related to element finding, connection management, browser process management, and page interactions to ensure consistency and better developer guidance.

  • Updated docstrings in pydoll/mixins/find_elements.py, connection/managers.py, connection/connection.py to clearly describe method behaviors.
  • Enhanced and translated inline comments in pydoll/browser/managers.py, element.py, page.py, and chrome.py for consistent English language usage.
  • Improved detail on parameters, return types, and raised exceptions across the codebase.

Reviewed Changes

File Description
pydoll/mixins/find_elements.py Enhanced docstrings for element finding methods with additional details.
pydoll/connection/managers.py Added comprehensive English docstrings; note minor untranslated inline comment remains.
pydoll/connection/connection.py Updated docstrings for connection methods and internal functions for clarity.
pydoll/browser/managers.py Improved documentation for proxy, browser process, and temp directory management.
pydoll/element.py Updated and standardized docstrings for web element interactions.
pydoll/browser/page.py Enhanced documentation for page operations such as navigation, cookie, and event handling.
pydoll/browser/chrome.py Added detailed docstrings describing Chrome-specific implementations.
pydoll/browser/base.py Standardized docstrings in base browser functions for consistency.

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

pydoll/connection/managers.py:227

  • Consider updating the inline comment 'Mantém tamanho máximo' to 'Maintains maximum size' for consistency with the rest of the English documentation.
self.network_logs = self.network_logs[-10000:]  # Mantém tamanho máximo
@thalissonvs thalissonvs marked this pull request as draft March 10, 2025 01:39
@thalissonvs thalissonvs linked an issue Mar 10, 2025 that may be closed by this pull request
@thalissonvs thalissonvs marked this pull request as ready for review March 11, 2025 23:06
@thalissonvs thalissonvs merged commit 8f02681 into main Mar 11, 2025
9 checks passed
@thalissonvs thalissonvs deleted the doc-improvements branch March 11, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translate the portuguese comments and docstrings to english
2 participants