Skip to content

WIP: major refactor for q as a module #350

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 25 commits into
base: master
Choose a base branch
from
Open

WIP: major refactor for q as a module #350

wants to merge 25 commits into from

Conversation

harelba
Copy link
Owner

@harelba harelba commented May 25, 2025

(github Actions changes are still in progress)

@harelba harelba requested a review from Copilot May 25, 2025 12:52
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors q into a module with major version updates and introduces several new test suites, updated dependencies, and CI/CD workflow configurations.

  • Added new tests for delimiter behavior, benchmarking, and query analysis
  • Updated package metadata, versioning, and documentation
  • Revamped GitHub workflows and removed outdated scripts

Reviewed Changes

Copilot reviewed 52 out of 52 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/DelimiterTests.py New tests for delimiter handling (note spelling discrepancies)
test/BenchmarkTests.py New benchmark tests with a corrected assertion and performance tests
test/AnalysisTests.py New analysis tests ensuring proper query output analysis
test-requirements.txt Updated pytest and added xdist dependency
setup.py Updated package name, version sourcing, and configuration
run-tests.sh Removed outdated test runner script
qtextasdata/*.py (utilities, logging, etc.) New module implementations and exception handling
pyoxidizer.bzl Removed outdated build configuration
bump-version.py Added version bumping script with semantic versioning logic
README.markdown & CHANGELOG.md Updated documentation and changelog for new release
.github/workflows/* New CI/CD configurations for testing, publishing, and docs
.python-version Added new python version marker (refactor-q)


class DelimiterTests(AbstractQTestCase):

def test_delimition_mistake_with_header(self):
Copy link
Preview

Copilot AI May 25, 2025

Choose a reason for hiding this comment

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

[nitpick] The word 'delimition' appears to be misspelled; consider correcting it to 'delimiter' for clarity.

Suggested change
def test_delimition_mistake_with_header(self):
def test_delimiter_mistake_with_header(self):

Copilot uses AI. Check for mistakes.

self.assertEqual(r, 0)
# Create file cache as part of preparation
r, o, e = run_command(Q_EXECUTABLE + ' -C readwrite -d , "select count(*) from %s"' % filename)
self.asserEqual(r, 0)
Copy link
Preview

Copilot AI May 25, 2025

Choose a reason for hiding this comment

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

There is a typo in the assertion method name; it should be 'assertEqual' instead of 'asserEqual'.

Suggested change
self.asserEqual(r, 0)
self.assertEqual(r, 0)

Copilot uses AI. Check for mistakes.

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.

2 participants