diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 279c50d..d95006a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/libs/shared_clickhouse/db.py b/libs/shared_clickhouse/db.py index d879219..b844768 100644 --- a/libs/shared_clickhouse/db.py +++ b/libs/shared_clickhouse/db.py @@ -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, @@ -38,5 +37,4 @@ def initialize_logs_table(db: ClickHouseDatabase, table_name: str): extra_fields String ) ENGINE = MergeTree() ORDER BY (timestamp, service_name) - """ - ) + """)