Skip to content

Commit

Permalink
Chore: Format code after upgrading to Ruff 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Motl committed Aug 19, 2024
1 parent 6168874 commit ea72c9d
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/mongodb_cdc_cratedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import pymongo
import sqlalchemy as sa

from commons_codec.transform.mongodb import MongoDBCDCTranslatorCrateDB


Expand Down
1 change: 1 addition & 0 deletions tests/decode/test_tasmota.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging

import pytest

from commons_codec.decode.tasmota import TasmotaSensorDecoder, TasmotaStateDecoder
from commons_codec.util.data import jd

Expand Down
1 change: 1 addition & 0 deletions tests/test_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from commons_codec.model import ColumnType, ColumnTypeMapStore, TableAddress


Expand Down
1 change: 1 addition & 0 deletions tests/transform/test_aws_dms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json

import pytest

from commons_codec.exception import MessageFormatError, UnknownOperationError
from commons_codec.model import ColumnType, ColumnTypeMapStore, TableAddress
from commons_codec.transform.aws_dms import DMSTranslatorCrateDB
Expand Down
1 change: 1 addition & 0 deletions tests/transform/test_dynamodb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import decimal

import pytest

from commons_codec.transform.dynamodb import DynamoCDCTranslatorCrateDB

READING_BASIC = {"device": "foo", "temperature": 42.42, "humidity": 84.84}
Expand Down
1 change: 1 addition & 0 deletions tests/transform/test_dynamodb_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from decimal import Decimal

import pytest

from commons_codec.vendor.boto3.dynamodb.types import Binary, TypeDeserializer


Expand Down
1 change: 1 addition & 0 deletions tests/transform/test_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
pytest.importorskip("pymongo")

from bson import ObjectId, Timestamp

from commons_codec.transform.mongodb import MongoDBCDCTranslatorCrateDB

MSG_OPERATION_UNKNOWN = {
Expand Down
1 change: 1 addition & 0 deletions tests/zyp/test_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pathlib import Path

import pytest

from zyp.model.base import SchemaDefinition
from zyp.model.bucket import (
BucketTransformation,
Expand Down
1 change: 1 addition & 0 deletions tests/zyp/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path

import yaml

from zyp.model.bucket import BucketTransformation, FieldRenamer, ValueConverter
from zyp.model.collection import CollectionTransformation
from zyp.model.moksha import MokshaTransformation
Expand Down
1 change: 1 addition & 0 deletions tests/zyp/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest
from dateutil.parser import ParserError

from zyp.function import to_datetime, to_unixtime

stddate = dt.datetime(2023, 6, 30)
Expand Down
1 change: 1 addition & 0 deletions tests/zyp/test_locator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from jsonpointer import JsonPointer, JsonPointerException

from zyp.util.locator import swap_node


Expand Down
1 change: 1 addition & 0 deletions tests/zyp/test_moksha.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from jmespath.exceptions import ParseError

from zyp.model.moksha import MokshaRule, MokshaTransformation


Expand Down
1 change: 1 addition & 0 deletions tests/zyp/test_project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys

import pytest

from zyp.model.collection import CollectionAddress, CollectionTransformation
from zyp.model.project import TransformationProject

Expand Down
1 change: 1 addition & 0 deletions tests/zyp/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import jsonpointer
import pytest
import transon

from zyp.util.expression import compile_expression
from zyp.util.locator import to_pointer

Expand Down

0 comments on commit ea72c9d

Please sign in to comment.