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

Add number separators to query history results #437

Closed
tconbeer opened this issue Jan 31, 2024 · 7 comments · Fixed by #448
Closed

Add number separators to query history results #437

tconbeer opened this issue Jan 31, 2024 · 7 comments · Fixed by #448
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tconbeer
Copy link
Owner

image

just a tweak to the f-string here:

f"{self.result_row_count:n} "

@tconbeer tconbeer added enhancement New feature or request good first issue Good for newcomers labels Jan 31, 2024
@code-master-ajay
Copy link
Contributor

@tconbeer can i take this up ?

@tconbeer
Copy link
Owner Author

tconbeer commented Feb 1, 2024

Yes please!!

@tconbeer
Copy link
Owner Author

tconbeer commented Feb 1, 2024

Some help here, but you may get stuck on the snapshot tests, which is totally fine. If I have time I'll try to record a short video on how to update those.

https://harlequin.sh/docs/contributing/index

@tconbeer
Copy link
Owner Author

tconbeer commented Feb 1, 2024

@code-master-ajay Walkthrough video has been added to that page in the docs, including a walkthrough of the process for updating snapshot tests, which I think you'll have to do after you make this change. (lmk if you get stuck, though)

@code-master-ajay
Copy link
Contributor

Thanks a lot @tconbeer will do this asap.

@code-master-ajay
Copy link
Contributor

code-master-ajay commented Feb 5, 2024

Hi @tconbeer , i followed your Walkthrough video, but when i run the make command i get this error in mypy section

=================================================== 148 passed, 3 deselected in 108.40s (0:01:48) ====================================================
mypy
src/harlequin/plugins.py:9:1: error: Cannot find implementation or library stub for module named "importlib_metadata"  [import-not-found]
src/harlequin/plugins.py:9:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
src/harlequin/cli.py:24:1: error: Cannot find implementation or library stub for module named "importlib_metadata"  [import-not-found]
tests/conftest.py:15:1: error: Cannot find implementation or library stub for module named "importlib_metadata"  [import-not-found]
tests/conftest.py:77: error: Unused "type: ignore" comment  [unused-ignore]
tests/conftest.py:84: error: Unused "type: ignore" comment  [unused-ignore]
tests/conftest.py:91: error: Unused "type: ignore" comment  [unused-ignore]
Found 6 errors in 3 files (checked 63 source files)
make: *** [Makefile:6: check] Error 1

I tried running :

poetry add importlib_metadata

But it is already present in the toml file, can you help me out here

OS: Ubuntu 22
python : 3.10

Upon further investigation i think the stub for " importlib_metadata " is not present, not sure if this is the reason.

@tconbeer
Copy link
Owner Author

tconbeer commented Feb 5, 2024

re: mypy, this happens because there is a setting to tell mypy to lint for Python 3.8, but you're running Python 3.10; importlib_metadata is a backport that is only installed on older pythons, so mypy expects it (since it's linting against 3.8), but can't find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants