Skip to content

Commit c254d32

Browse files
committed
ruff
1 parent 05a1b8f commit c254d32

30 files changed

+78
-4
lines changed

docs/examples/usage/usage_configuration_1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
def test_sqlite_memory_db() -> None:
2+
__all__ = ("test_sqlite_memory_db", )
3+
4+
25
from sqlspec import SQLSpec
36
from sqlspec.adapters.sqlite import SqliteConfig
47

docs/examples/usage/usage_configuration_10.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
POOL_INSTANCE = 20
2+
__all__ = ("test_manual_pool", )
3+
24

35

46
def test_manual_pool() -> None:

docs/examples/usage/usage_configuration_11.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
def test_thread_local_connections() -> None:
2+
__all__ = ("test_thread_local_connections", )
3+
4+
25
from sqlspec.adapters.sqlite import SqliteConfig
36

47
config = SqliteConfig(pool_config={"database": "test.db"})

docs/examples/usage/usage_configuration_12.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
def test_basic_statement_config() -> None:
2+
__all__ = ("test_basic_statement_config", )
3+
4+
25
import os
36

47
from sqlspec import StatementConfig

docs/examples/usage/usage_configuration_13.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
def test_parameter_style_config() -> None:
2+
__all__ = ("test_parameter_style_config", )
3+
4+
25
from sqlspec import ParameterStyle, ParameterStyleConfig, StatementConfig
36

47
param_config = ParameterStyleConfig(

docs/examples/usage/usage_configuration_14.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
def test_parameter_styles() -> None:
2+
__all__ = ("test_parameter_styles", )
3+
4+
25
from sqlspec import ParameterStyle
36

47
# Question mark (SQLite, DuckDB)

docs/examples/usage/usage_configuration_15.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
"""Test configuration example: Global cache configuration."""
22

3+
__all__ = ("test_global_cache_config", )
4+
5+
36
SQL_CACHE_SIZE = 1000
47

58

docs/examples/usage/usage_configuration_16.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Test configuration example: Per-instance cache configuration."""
22

3+
__all__ = ("test_per_instance_cache_config", )
4+
35

46
def test_per_instance_cache_config() -> None:
57
"""Test per-instance cache configuration."""

docs/examples/usage/usage_configuration_17.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Test configuration example: Cache statistics tracking."""
22

3+
__all__ = ("test_cache_statistics", )
4+
35

46
def test_cache_statistics() -> None:
57
"""Test cache statistics tracking."""

docs/examples/usage/usage_configuration_18.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Test configuration example: Cache clearing operations."""
22

3+
__all__ = ("test_clear_cache", )
4+
35

46
def test_clear_cache() -> None:
57
"""Test cache clearing operations."""

0 commit comments

Comments
 (0)