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

chore: bump textual to 0.60.1 and textarea to 0.13.1 #594

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.15
rev: v0.3.7
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies:
- click
- duckdb>=0.8.0
- shandy-sqlfmt[jinjafmt]
- textual>=0.49.0
- textual-textarea>=0.11.3
- textual>=0.60.1
- textual-textarea>=0.13.1
- textual-fastdatatable>=0.7.1
- pytest
- types-pygments
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Bug Fixes

- Improves support for system clipboard on Wayland ([#585](https://github.com/tconbeer/harlequin/issues/585) - thank you [@SalmanFarooqShiekh](https://github.com/SalmanFarooqShiekh)!).

## [1.22.1] - 2024-06-28

### Bug Fixes
Expand Down
30 changes: 15 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ build-backend = "poetry.core.masonry.api"
python = ">=3.8.1,<4.0.0"

# textual and component libraries
textual = "==0.56.4"
textual = "==0.60.1"
textual-fastdatatable = "==0.7.1"
textual-textarea = "==0.13.0"
textual-textarea = "==0.13.1"

# click
click = "^8.1.3"
Expand Down Expand Up @@ -66,7 +66,6 @@ pre-commit = "^3.3.1"
textual-dev = "^1.0.1"
harlequin-postgres = "^0.2"
harlequin-mysql = "^0.1.1"
harlequin-odbc = "^0.1.1"
pyinstrument = "^4.6.2"

[tool.poetry.group.static.dependencies]
Expand Down
1,922 changes: 961 additions & 961 deletions tests/functional_tests/__snapshots__/test_export.ambr

Large diffs are not rendered by default.

1,184 changes: 592 additions & 592 deletions tests/functional_tests/__snapshots__/test_keys_app.ambr

Large diffs are not rendered by default.

177 changes: 88 additions & 89 deletions tests/functional_tests/__snapshots__/test_run_query_bar.ambr

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions tests/functional_tests/test_keymap_vscode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from textwrap import dedent
from unittest.mock import MagicMock

import pytest
from harlequin import Harlequin
Expand All @@ -25,7 +26,7 @@


@pytest.mark.asyncio
async def test_editor_bindings(app: Harlequin) -> None:
async def test_editor_bindings(app: Harlequin, mock_pyperclip: MagicMock) -> None:
async with app.run_test() as pilot:
await app.workers.wait_for_complete()
while app.editor is None:
Expand Down Expand Up @@ -160,7 +161,9 @@ async def test_editor_bindings(app: Harlequin) -> None:


@pytest.mark.asyncio
async def test_results_viewer_bindings(app: Harlequin) -> None:
async def test_results_viewer_bindings(
app: Harlequin, mock_pyperclip: MagicMock
) -> None:
async with app.run_test() as pilot:
await app.workers.wait_for_complete()
while app.editor is None:
Expand Down
1 change: 1 addition & 0 deletions tests/functional_tests/test_run_query_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ async def test_transaction_button(
assert app.connection.transaction_mode.label == "Auto"
snap_results.append(await app_snapshot(app, "Initialize with Tx: Auto"))
await pilot.click("#transaction_button")
await pilot.pause(0.3)
await pilot.wait_for_animation()
assert app.connection.transaction_mode
assert app.connection.transaction_mode.label == "Manual"
Expand Down