-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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): |
There was a problem hiding this comment.
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.
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) |
There was a problem hiding this comment.
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'.
self.asserEqual(r, 0) | |
self.assertEqual(r, 0) |
Copilot uses AI. Check for mistakes.
(github Actions changes are still in progress)