Skip to content

Commit 8cb47e3

Browse files
chore: change max-line-length to 120
1 parent ae1b273 commit 8cb47e3

File tree

33 files changed

+4
-47
lines changed

33 files changed

+4
-47
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ indent-after-paren=4
340340
indent-string=' '
341341

342342
# Maximum number of characters on a single line.
343-
max-line-length=100
343+
max-line-length=120
344344

345345
# Maximum number of lines in a module.
346346
max-module-lines=1000

src/kili/adapters/kili_api_gateway/event/queries.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def __init__(self, graphql_client: GraphQLClient) -> None:
1616
"""Initialize the paginator."""
1717
self._graphql_client = graphql_client
1818

19-
# pylint: disable=too-many-arguments
2019
def execute_query_from_paginated_call(
2120
self,
2221
query: str,

src/kili/adapters/kili_api_gateway/user/mappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def update_user_data_mapper(data: UserDataKiliGatewayInput) -> Dict:
3535
return {
3636
"activated": data.activated,
3737
"apiKey": data.api_key,
38-
# "auth0Id": data.auth0_id, # refused by the backend: only used for service account # noqa: ERA001 # pylint: disable=line-too-long
38+
# "auth0Id": data.auth0_id, # refused by the backend: only used for service account # noqa: ERA001
3939
"email": data.email,
4040
"firstname": data.firstname,
4141
"hasCompletedLabelingTour": data.has_completed_labeling_tour,

src/kili/adapters/kili_api_gateway/user/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class UserDataKiliGatewayInput:
2525

2626
activated: Optional[bool] = None
2727
api_key: Optional[str] = None
28-
# auth0_id: Optional[str] = None # refused by the backend: only used for service account # noqa: ERA001 # pylint: disable=line-too-long
28+
# auth0_id: Optional[str] = None # refused by the backend: only used for service account # noqa: ERA001
2929
email: Optional[str] = None
3030
firstname: Optional[str] = None
3131
has_completed_labeling_tour: Optional[bool] = None

src/kili/core/graphql/queries.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def __call__(
6868
options: QueryOptions,
6969
post_call_function: Optional[Callable] = None,
7070
) -> Generator[Dict, None, None]:
71-
# pylint: disable=line-too-long
7271
"""Get a generator of objects of the specified type in accordance with the provided where."""
7372
fragment = fragment_builder(fields)
7473
query = self.query(fragment)

src/kili/core/helpers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ def format_result(
3939
if isinstance(formatted_json, list):
4040
if get_origin(object_) is list:
4141
obj = get_args(object_)[0]
42-
# pylint: disable=line-too-long
4342
return [obj(element) for element in formatted_json] # pyright: ignore[reportGeneralTypeIssues]
4443
# the legacy "orm" objects fall into this category.
45-
# pylint: disable=line-too-long
4644
return [object_(element) for element in formatted_json] # pyright: ignore[reportGeneralTypeIssues]
4745

4846
return object_(formatted_json)
@@ -287,7 +285,6 @@ def get_file_paths_to_upload(
287285

288286

289287
def check_file_mime_type(path: str, input_type: str, raise_error=True) -> bool:
290-
# pylint: disable=line-too-long
291288
"""Returns true if the mime type of the file corresponds to the allowed mime types of the project."""
292289
mime_type = get_mime_type(path.lower())
293290

src/kili/domain/asset/helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def check_asset_identifier_arguments(
1313
asset_id_array: Optional[ListOrTuple[AssetId]],
1414
asset_external_id_array: Optional[ListOrTuple[AssetExternalId]],
1515
) -> None:
16-
# pylint: disable=line-too-long
1716
"""Check that a list of assets can be identified either by their asset IDs or their external IDs."""
1817
if asset_id_array is not None:
1918
if asset_external_id_array is not None:

src/kili/domain/event.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
@dataclass
18-
# pylint: disable=too-many-instance-attributes
1918
class EventFilters:
2019
"""Event filters for running an event search."""
2120

src/kili/entrypoints/cli/project/export.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def export_labels(
7272
with_assets: bool,
7373
normalized_coordinates: Optional[bool],
7474
) -> None:
75-
# pylint: disable=line-too-long
7675
"""Export the Kili labels of a project to a given format.
7776
7877
\b

src/kili/entrypoints/cli/project/import_.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def check_asset_type(key: str, value: str, http_client: Optional[HttpClient]) ->
3333

3434

3535
def generate_json_metadata(as_frames: bool, fps: Optional[int]):
36-
# pylint: disable=line-too-long
3736
"""Generate the json_metadata for input of the import_assets service when uploading from a list of path.
3837
3938
Args:

0 commit comments

Comments
 (0)