Skip to content
Open
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default_language_version:
python: python3.13
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
Expand All @@ -18,24 +18,24 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
rev: 26.5.1
hooks:
- id: black

- repo: https://github.com/pycqa/flake8
rev: 7.2.0
rev: 7.3.0
hooks:
- id: flake8

- repo: https://github.com/pycqa/isort
rev: 6.0.1
rev: 9.0.0b1
hooks:
- id: isort
name: isort (python)
args: [ "--profile", "black", "-l", "88" ]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
rev: v2.3.0
hooks:
- id: mypy

Expand Down
6 changes: 2 additions & 4 deletions libs/shared_clickhouse/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def initialize_logs_table(db: ClickHouseDatabase, table_name: str):
Initialize the given table as a table compatible with logging, in a ClickHouse database if it doesn't exist.
"""
client = db.get_client()
client.command(
f"""
client.command(f"""
CREATE TABLE IF NOT EXISTS {table_name} (
timestamp DateTime,
service_name String,
Expand All @@ -38,5 +37,4 @@ def initialize_logs_table(db: ClickHouseDatabase, table_name: str):
extra_fields String
) ENGINE = MergeTree()
ORDER BY (timestamp, service_name)
"""
)
""")
Loading