mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-08 01:24:20 +02:00
Compare commits
6 commits
main
...
sqlite-uti
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bcf8b564ee | ||
|
|
829aa1438c | ||
|
|
d7b39f7393 | ||
|
|
8541829c2d | ||
|
|
cf6a12568b | ||
|
|
c9d8a12a7e |
2 changed files with 6 additions and 3 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -53,6 +53,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install uv
|
pip install uv
|
||||||
uv run ty check sqlite_utils
|
uv run ty check sqlite_utils
|
||||||
|
- name: Check no accidental dev= dependencies needed
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: |
|
||||||
|
pip install uv
|
||||||
|
uv run --no-default-groups sqlite-utils --help
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: black . --check
|
run: black . --check
|
||||||
- name: Check if cog needs to be run
|
- name: Check if cog needs to be run
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ from typing import (
|
||||||
)
|
)
|
||||||
|
|
||||||
from sqlite_fts4 import rank_bm25
|
from sqlite_fts4 import rank_bm25
|
||||||
from typing_extensions import Self
|
|
||||||
|
|
||||||
from sqlite_utils.plugins import ensure_plugins_loaded, pm
|
from sqlite_utils.plugins import ensure_plugins_loaded, pm
|
||||||
|
|
||||||
from .create_table_parser import (
|
from .create_table_parser import (
|
||||||
|
|
@ -637,7 +635,7 @@ class Database:
|
||||||
pm.hook.prepare_connection(conn=self.conn)
|
pm.hook.prepare_connection(conn=self.conn)
|
||||||
self.strict = strict
|
self.strict = strict
|
||||||
|
|
||||||
def __enter__(self) -> Self:
|
def __enter__(self):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __exit__(
|
def __exit__(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue