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

perf: ⚡️ Enhance & update the main code snippet files #459

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

yashksaini-coder
Copy link
Contributor

Closes: #458

This pull request includes significant additions and improvements to the unit tests for various library snippets, as well as type hinting enhancements in the corresponding library files. The most important changes include the addition of comprehensive unit tests for matplotlib, numpy, pandas, and requests snippets, and the addition of type hints to improve code readability and maintainability.

Unit Tests Additions:

  • Matplotlib Tests:

    • Added unit tests for line and bar plot creation in Tests/library_snippets/test_matplotlib_snippet.py.
  • Numpy Tests:

    • Added unit tests for array addition and multiplication in Tests/library_snippets/test_numpy_snippet.py.
  • Pandas Tests:

    • Added unit tests for DataFrame filtering and saving in Tests/library_snippets/test_pandas_snippet.py.
  • Requests Tests:

    • Added unit tests for fetching and parsing HTML content in Tests/library_snippets/test_requests_snippet.py.

Type Hinting Enhancements:

  • Matplotlib Snippet:

    • Added type hints to all plotting functions in library_snippets/matplotlib_snippet.py.
  • Numpy Snippet:

    • Added type hints to all mathematical operations in library_snippets/numpy_snippet.py.
  • Pandas Snippet:

    • Added type hints to DataFrame operations in library_snippets/pandas_snippet.py.
  • Requests Snippet:

    • Added type hints to HTML fetching and parsing functions in library_snippets/requests_snippet.py.

@UTSAVS26 Kindly review this PR, and assign it level 3 it is my request to you.

Copy link
Contributor

👋 Thank you for opening this pull request! We're excited to review your contribution. Please give us a moment, and we'll get back to you shortly!

Feel free to join our community on Discord to discuss more!

@github-actions github-actions bot requested a review from UTSAVS26 November 10, 2024 01:45
@UTSAVS26 UTSAVS26 merged commit 6aafbdd into UTSAVS26:main Nov 10, 2024
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancing library code snippets
2 participants