Skip to content

Commit c687e16

Browse files
authored
Merge pull request #1898 from dbcli/RW/add-sqlglot-pygments-to-checkup
Add sqlglot and pygments versions to `--checkup` output
2 parents 56fa49b + 895f522 commit c687e16

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ Upcoming (TBD)
44
Features
55
---------
66
* Update `cli_helpers` to v2.15.0 for `mysql_heavy` table format.
7-
7+
* Add `sqlglot` and `pygments` to `--checkup` output.
88

99
Bug Fixes
1010
---------
1111
* Respect `history_file` setting in the `[main]` section of `~/.myclirc`.
1212
* Adapt test suite to pygments v2.20.0.
1313

14+
15+
Documentation
16+
---------
17+
* Add support for other MySQL wire-compatible databases to `README.md`.
18+
19+
1420
Internal
1521
---------
1622
* Factor `app_state.py`, `cli_args.py`, and `output.py` out of `main.py`.

mycli/main_modes/checkup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def _dependencies_checkup() -> None:
2828
'cli_helpers',
2929
'click',
3030
'prompt_toolkit',
31+
'pygments',
3132
'pymysql',
33+
'sqlglot',
34+
'sqlglotc',
3235
'tabulate',
3336
]:
3437
try:

test/pytests/test_checkup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def test_dependencies_checkup(monkeypatch, capsys) -> None:
4747
'click': '2.0.0',
4848
'prompt_toolkit': '3.0.0',
4949
'pymysql': '4.0.0',
50+
'pygments': '2.19.2',
51+
'sqlglot': '30.7.0',
52+
'sqlglotc': '30.7.0',
5053
}
5154

5255
def fake_version(name: str) -> str:

0 commit comments

Comments
 (0)