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

Bugfix/attempt to fix module structure #23

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

yazdipour
Copy link
Owner

@yazdipour yazdipour commented Jun 18, 2024

Fix #22

πŸ“‘ Description

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

Summary by Sourcery

This pull request addresses issues with the module structure by fixing import paths in both the test and main module files. It also enhances the test workflow to use unittest discovery and updates the setup script to improve package discovery.

  • Bug Fixes:
    • Fixed module import paths in tests/test_omnivoreql.py to correctly reference the OmnivoreQL module and its components.
    • Corrected import statements in omnivoreql/omnivoreql.py to use relative imports for internal modules.
  • Enhancements:
    • Updated the test workflow in .github/workflows/test.yml to use unittest discovery for running tests.
    • Modified setup.py to use find_packages() for package discovery.

Copy link
Contributor

sourcery-ai bot commented Jun 18, 2024

Reviewer's Guide by Sourcery

This pull request addresses the module structure issues by updating import statements to use absolute imports, following PEP8 guidelines, simplifying the test execution command in the GitHub Actions workflow, and improving package discovery in the setup configuration.

File-Level Changes

Files Changes
tests/test_omnivoreql.py
omnivoreql/omnivoreql.py
Updated import statements to use absolute imports and follow PEP8 guidelines.
.github/workflows/test.yml
setup.py
Simplified test execution and improved package discovery in setup configuration.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @yazdipour - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟒 General issues: all looks good
  • 🟒 Security: all looks good
  • 🟑 Testing: 2 issues found
  • 🟒 Complexity: all looks good
  • 🟒 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click πŸ‘ or πŸ‘Ž on each comment to tell me if it was helpful.

tests/test_omnivoreql.py Show resolved Hide resolved
tests/test_omnivoreql.py Outdated Show resolved Hide resolved
@yazdipour yazdipour merged commit 54bf8a1 into main Jun 18, 2024
3 checks passed
@yazdipour yazdipour deleted the bugfix/attempt-to-fix-module-structure branch June 18, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Error import OmnivoreQL
1 participant