Skip to content

Commit

Permalink
Update pylint (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Burmak authored Apr 17, 2024
1 parent 0c194a8 commit fed734a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 152 deletions.
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ confidence=HIGH,
# --disable=W".
disable=broad-except,
consider-using-f-string,
consider-using-max-builtin,
duplicate-code,
fixme,
inconsistent-return-statements,
line-too-long,
Expand Down
3 changes: 2 additions & 1 deletion ch_tools/chadmin/internal/object_storage/s3_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import boto3
from botocore.client import Config

from ch_tools.chadmin.internal.object_storage import ObjListItem
from ch_tools.chadmin.internal.utils import chunked
from ch_tools.common.clickhouse.config.storage_configuration import S3DiskConfiguration

from .obj_list_item import ObjListItem

BULK_DELETE_CHUNK_SIZE = 1000


Expand Down
3 changes: 1 addition & 2 deletions ch_tools/common/cli/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
def progress(
i: Sequence[Union[T, Any]], description: str
) -> Generator[Union[T, Any], None, None]:
for e in tqdm(i, desc=description, colour="green"):
yield e
yield from tqdm(i, desc=description, colour="green")
Loading

0 comments on commit fed734a

Please sign in to comment.