diff --git a/annofabcli/annotation/change_annotation_attributes.py b/annofabcli/annotation/change_annotation_attributes.py index 615b1415..01aadc79 100644 --- a/annofabcli/annotation/change_annotation_attributes.py +++ b/annofabcli/annotation/change_annotation_attributes.py @@ -216,9 +216,7 @@ def change_annotation_attributes_for_task_list( success_count = len([e for e in result_bool_list if e]) else: - for task_index, task_id in enumerate(task_id_list): - try: result = self.change_attributes_for_task( task_id, diff --git a/annofabcli/annotation/change_annotation_properties.py b/annofabcli/annotation/change_annotation_properties.py index 25c52989..da76ff68 100644 --- a/annofabcli/annotation/change_annotation_properties.py +++ b/annofabcli/annotation/change_annotation_properties.py @@ -248,7 +248,6 @@ def change_annotation_properties_task_list( backup_dir: Optional[Path] = None, parallelism: Optional[int] = None, ): - project_title = self.facade.get_project_title(self.project_id) logger.info(f"プロジェクト'{project_title}'に対して、タスク{len(task_id_list)} 件のアノテーションのプロパティを変更します") diff --git a/annofabcli/annotation/copy_annotation.py b/annofabcli/annotation/copy_annotation.py index fa31fd81..0707595a 100644 --- a/annofabcli/annotation/copy_annotation.py +++ b/annofabcli/annotation/copy_annotation.py @@ -126,7 +126,6 @@ class CopyAnnotationMain(AbstractCommandLineWithConfirmInterface): def __init__( self, service: annofabapi.Resource, *, project_id: str, all_yes: bool, overwrite: bool, merge: bool, force: bool ): - self.service = service self.project_id = project_id self.overwrite = overwrite diff --git a/annofabcli/annotation/import_annotation.py b/annofabcli/annotation/import_annotation.py index 0bd00411..572b4034 100644 --- a/annofabcli/annotation/import_annotation.py +++ b/annofabcli/annotation/import_annotation.py @@ -313,7 +313,6 @@ def parser_to_request_body_with_merge( details: List[ImportedSimpleAnnotationDetail], old_annotation: Dict[str, Any], ) -> Dict[str, Any]: - old_details = old_annotation["details"] old_dict_detail = {} INDEX_KEY = "_index" @@ -363,7 +362,6 @@ def parser_to_request_body_with_merge( return request_body def put_annotation_for_input_data(self, parser: SimpleAnnotationParser) -> bool: - task_id = parser.task_id input_data_id = parser.input_data_id @@ -401,7 +399,6 @@ def put_annotation_for_input_data(self, parser: SimpleAnnotationParser) -> bool: return True def put_annotation_for_task(self, task_parser: SimpleAnnotationParserByTask) -> int: - logger.info(f"タスク'{task_parser.task_id}'に対してアノテーションを登録します。") success_count = 0 diff --git a/annofabcli/annotation/restore_annotation.py b/annofabcli/annotation/restore_annotation.py index 3986bc9c..c28aa413 100644 --- a/annofabcli/annotation/restore_annotation.py +++ b/annofabcli/annotation/restore_annotation.py @@ -95,7 +95,6 @@ def parser_to_request_body(self, parser: SimpleAnnotationParser) -> Dict[str, An return request_body def put_annotation_for_input_data(self, parser: SimpleAnnotationParser) -> bool: - task_id = parser.task_id input_data_id = parser.input_data_id @@ -110,7 +109,6 @@ def put_annotation_for_input_data(self, parser: SimpleAnnotationParser) -> bool: return True def put_annotation_for_task(self, task_parser: SimpleAnnotationParserByTask) -> int: - logger.info(f"タスク'{task_parser.task_id}' のアノテーションをリストアします。") success_count = 0 @@ -269,7 +267,6 @@ class RestoreAnnotation(AbstractCommandLineInterface): COMMON_MESSAGE = "annofabcli annotation restore: error:" def validate(self, args: argparse.Namespace) -> bool: - if args.parallelism is not None and not args.yes: print( f"{self.COMMON_MESSAGE} argument --parallelism: '--parallelism'を指定するときは、必ず '--yes' を指定してください。", diff --git a/annofabcli/annotation/subcommand_annotation.py b/annofabcli/annotation/subcommand_annotation.py index 64fd26e7..e5e82b1f 100644 --- a/annofabcli/annotation/subcommand_annotation.py +++ b/annofabcli/annotation/subcommand_annotation.py @@ -15,7 +15,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/annotation_specs/get_annotation_specs_with_attribute_id_replaced.py b/annofabcli/annotation_specs/get_annotation_specs_with_attribute_id_replaced.py index 1fb55e2d..ce5f18f9 100644 --- a/annofabcli/annotation_specs/get_annotation_specs_with_attribute_id_replaced.py +++ b/annofabcli/annotation_specs/get_annotation_specs_with_attribute_id_replaced.py @@ -136,7 +136,6 @@ def main( class GetAnnotationSpecsWithAttributeIdReplaced(AbstractCommandLineInterface): def main(self): - args = self.args project_id: str = args.project_id super().validate_project(project_id) diff --git a/annofabcli/annotation_specs/get_annotation_specs_with_choice_id_replaced.py b/annofabcli/annotation_specs/get_annotation_specs_with_choice_id_replaced.py index ea32eded..29512e7c 100644 --- a/annofabcli/annotation_specs/get_annotation_specs_with_choice_id_replaced.py +++ b/annofabcli/annotation_specs/get_annotation_specs_with_choice_id_replaced.py @@ -102,7 +102,6 @@ def main( class GetAnnotationSpecsWithAttributeIdReplaced(AbstractCommandLineInterface): def main(self): - args = self.args project_id: str = args.project_id super().validate_project(project_id) diff --git a/annofabcli/annotation_specs/get_annotation_specs_with_label_id_replaced.py b/annofabcli/annotation_specs/get_annotation_specs_with_label_id_replaced.py index 3f566621..2ccda4fc 100644 --- a/annofabcli/annotation_specs/get_annotation_specs_with_label_id_replaced.py +++ b/annofabcli/annotation_specs/get_annotation_specs_with_label_id_replaced.py @@ -112,7 +112,6 @@ def main(self, annotation_specs: dict[str, Any], *, target_label_names: Optional class GetAnnotationSpecsWithLabelIdReplaced(AbstractCommandLineInterface): def main(self): - args = self.args project_id: str = args.project_id super().validate_project(project_id) diff --git a/annofabcli/annotation_specs/list_annotation_specs_label.py b/annofabcli/annotation_specs/list_annotation_specs_label.py index 246177f3..b19625e6 100644 --- a/annofabcli/annotation_specs/list_annotation_specs_label.py +++ b/annofabcli/annotation_specs/list_annotation_specs_label.py @@ -100,7 +100,6 @@ def get_history_id_from_before_index(self, project_id: str, before: int) -> Opti return history["history_id"] def main(self): - args = self.args if args.before is not None: diff --git a/annofabcli/annotation_specs/subcommand_annotation_specs.py b/annofabcli/annotation_specs/subcommand_annotation_specs.py index b41892f2..9dcf1587 100644 --- a/annofabcli/annotation_specs/subcommand_annotation_specs.py +++ b/annofabcli/annotation_specs/subcommand_annotation_specs.py @@ -13,7 +13,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/comment/delete_comment.py b/annofabcli/comment/delete_comment.py index 4a30f884..aa6fe9b8 100644 --- a/annofabcli/comment/delete_comment.py +++ b/annofabcli/comment/delete_comment.py @@ -229,7 +229,6 @@ class DeleteComment(AbstractCommandLineInterface): COMMON_MESSAGE = "annofabcli comment delete: error:" def validate(self, args: argparse.Namespace) -> bool: - if args.parallelism is not None and not args.yes: print( f"{self.COMMON_MESSAGE} argument --parallelism: '--parallelism'を指定するときは、必ず '--yes' を指定してください。", diff --git a/annofabcli/comment/list_all_comment.py b/annofabcli/comment/list_all_comment.py index 59d28c87..1a8aad22 100644 --- a/annofabcli/comment/list_all_comment.py +++ b/annofabcli/comment/list_all_comment.py @@ -38,7 +38,6 @@ def get_all_comment( comment_type: Optional[CommentType], exclude_reply: bool, ) -> list[dict[str, Any]]: - if comment_json is None: downloading_obj = DownloadingFile(self.service) with tempfile.NamedTemporaryFile() as temp_file: diff --git a/annofabcli/comment/put_comment_simply.py b/annofabcli/comment/put_comment_simply.py index 099fff77..9fa5c260 100644 --- a/annofabcli/comment/put_comment_simply.py +++ b/annofabcli/comment/put_comment_simply.py @@ -175,7 +175,6 @@ def put_comment_for_task_list( comment_info: AddedSimpleComment, parallelism: Optional[int] = None, ) -> None: - logger.info(f"{len(task_ids)} 件のタスクに{self.comment_type_name}を付与します。") if parallelism is not None: diff --git a/annofabcli/comment/put_inspection_comment.py b/annofabcli/comment/put_inspection_comment.py index e0ad1a46..a983e872 100644 --- a/annofabcli/comment/put_inspection_comment.py +++ b/annofabcli/comment/put_inspection_comment.py @@ -26,7 +26,6 @@ class PutInspectionComment(AbstractCommandLineInterface): COMMON_MESSAGE = "annofabcli comment put_inspection: error:" def validate(self, args: argparse.Namespace) -> bool: - if args.parallelism is not None and not args.yes: print( f"{self.COMMON_MESSAGE} argument --parallelism: '--parallelism'を指定するときは、必ず '--yes' を指定してください。", diff --git a/annofabcli/comment/put_inspection_comment_simply.py b/annofabcli/comment/put_inspection_comment_simply.py index ab117c6a..bdaa4629 100644 --- a/annofabcli/comment/put_inspection_comment_simply.py +++ b/annofabcli/comment/put_inspection_comment_simply.py @@ -22,7 +22,6 @@ class PutInspectionCommentSimply(AbstractCommandLineInterface): - COMMON_MESSAGE = "annofabcli comment put_inspection_simply: error:" def validate(self, args: argparse.Namespace) -> bool: diff --git a/annofabcli/comment/put_onhold_comment.py b/annofabcli/comment/put_onhold_comment.py index 20b0279b..d70c6399 100644 --- a/annofabcli/comment/put_onhold_comment.py +++ b/annofabcli/comment/put_onhold_comment.py @@ -24,7 +24,6 @@ class PutInspectionComment(AbstractCommandLineInterface): COMMON_MESSAGE = "annofabcli comment put_onhold: error:" def validate(self, args: argparse.Namespace) -> bool: - if args.parallelism is not None and not args.yes: print( f"{self.COMMON_MESSAGE} argument --parallelism: '--parallelism'を指定するときは、必ず '--yes' を指定してください。", diff --git a/annofabcli/comment/put_onhold_comment_simply.py b/annofabcli/comment/put_onhold_comment_simply.py index d041d67f..6cf5b059 100644 --- a/annofabcli/comment/put_onhold_comment_simply.py +++ b/annofabcli/comment/put_onhold_comment_simply.py @@ -21,7 +21,6 @@ class PutOnholdCommentSimply(AbstractCommandLineInterface): - COMMON_MESSAGE = "annofabcli comment put_onhold_simply: error:" def validate(self, args: argparse.Namespace) -> bool: diff --git a/annofabcli/comment/subcommand_comment.py b/annofabcli/comment/subcommand_comment.py index 294ee824..5ac55f90 100644 --- a/annofabcli/comment/subcommand_comment.py +++ b/annofabcli/comment/subcommand_comment.py @@ -14,7 +14,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/filesystem/draw_annotation.py b/annofabcli/filesystem/draw_annotation.py index 4d747f55..46379c9d 100644 --- a/annofabcli/filesystem/draw_annotation.py +++ b/annofabcli/filesystem/draw_annotation.py @@ -37,7 +37,6 @@ class DrawingOptions(DataClassJsonMixin): class DrawingAnnotationForOneImage: - _COLOR_PALETTE = [ "red", "maroon", @@ -177,7 +176,6 @@ def main( assert image_file is not None or image_size is not None if image_file is not None: - with Image.open(image_file) as image: draw = ImageDraw.Draw(image) self._draw_annotations(draw, parser) diff --git a/annofabcli/filesystem/filter_annotation.py b/annofabcli/filesystem/filter_annotation.py index 6b30668f..84d8b856 100644 --- a/annofabcli/filesystem/filter_annotation.py +++ b/annofabcli/filesystem/filter_annotation.py @@ -93,7 +93,6 @@ def filter_annotation_zip(annotation_zip: Path, filter_query: FilterQuery, outpu zip_filepath_dict = create_outer_filepath_dict(zip_file.namelist()) count = 0 for parser in lazy_parse_simple_annotation_zip(annotation_zip): - if not match_query(parser.load_json(), filter_query): continue @@ -201,7 +200,6 @@ def main(args): def parse_args(parser: argparse.ArgumentParser): - parser.add_argument("--annotation", type=Path, required=True, help="アノテーションzip、またはzipを展開したディレクトリ") parser.add_argument( diff --git a/annofabcli/filesystem/subcommand_filesystem.py b/annofabcli/filesystem/subcommand_filesystem.py index b4e36d17..6e12259a 100644 --- a/annofabcli/filesystem/subcommand_filesystem.py +++ b/annofabcli/filesystem/subcommand_filesystem.py @@ -11,7 +11,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers() # サブコマンドの定義 diff --git a/annofabcli/input_data/put_input_data.py b/annofabcli/input_data/put_input_data.py index 1ac3b10a..a00e7523 100644 --- a/annofabcli/input_data/put_input_data.py +++ b/annofabcli/input_data/put_input_data.py @@ -125,7 +125,6 @@ def __init__(self, service: annofabapi.Resource, facade: AnnofabApiFacade, all_y def put_input_data( self, project_id: str, csv_input_data: InputDataForPut, last_updated_datetime: Optional[str] = None ): - request_body: Dict[str, Any] = {"last_updated_datetime": last_updated_datetime} file_path = get_file_scheme_path(csv_input_data.input_data_path) @@ -184,7 +183,6 @@ def confirm_put_input_data(self, input_data: InputDataForPut, already_exists: bo return self.confirm_processing(message_for_confirm) def put_input_data_main(self, project_id: str, csv_input_data: CsvInputData, overwrite: bool = False) -> bool: - input_data = InputDataForPut( input_data_name=csv_input_data.input_data_name, input_data_path=csv_input_data.input_data_path, diff --git a/annofabcli/input_data/subcommand_input_data.py b/annofabcli/input_data/subcommand_input_data.py index d7751f3d..42c30c1a 100644 --- a/annofabcli/input_data/subcommand_input_data.py +++ b/annofabcli/input_data/subcommand_input_data.py @@ -14,7 +14,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/inspection_comment/list_all_inspection_comment.py b/annofabcli/inspection_comment/list_all_inspection_comment.py index bbfac541..64af7be9 100644 --- a/annofabcli/inspection_comment/list_all_inspection_comment.py +++ b/annofabcli/inspection_comment/list_all_inspection_comment.py @@ -72,7 +72,6 @@ def get_inspection_comment_list( only_reply: bool, exclude_reply: bool, ) -> List[Inspection]: - if inspection_comment_json is None: downloading_obj = DownloadingFile(self.service) cache_dir = annofabcli.common.utils.get_cache_dir() diff --git a/annofabcli/inspection_comment/list_inspections.py b/annofabcli/inspection_comment/list_inspections.py index 759652d5..4832479f 100644 --- a/annofabcli/inspection_comment/list_inspections.py +++ b/annofabcli/inspection_comment/list_inspections.py @@ -147,7 +147,6 @@ def get_inspections( input_data_id_list = task["input_data_id_list"] logger.info(f"タスク '{task_id}' に紐づく検査コメントを取得します。input_dataの個数 = {len(input_data_id_list)}") for input_data_index, input_data_id in enumerate(input_data_id_list): - inspections = self.get_inspections_by_input_data( project_id, task_id, input_data_id, input_data_index ) diff --git a/annofabcli/inspection_comment/subcommand_inspection_comment.py b/annofabcli/inspection_comment/subcommand_inspection_comment.py index ccd28340..4f35883c 100644 --- a/annofabcli/inspection_comment/subcommand_inspection_comment.py +++ b/annofabcli/inspection_comment/subcommand_inspection_comment.py @@ -11,7 +11,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/instruction/list_instruction_history.py b/annofabcli/instruction/list_instruction_history.py index 4df48727..8345dddc 100644 --- a/annofabcli/instruction/list_instruction_history.py +++ b/annofabcli/instruction/list_instruction_history.py @@ -34,7 +34,6 @@ def main(args): def parse_args(parser: argparse.ArgumentParser): - argument_parser = ArgumentParser(parser) argument_parser.add_project_id() diff --git a/annofabcli/instruction/subcommand_instruction.py b/annofabcli/instruction/subcommand_instruction.py index 012ed80e..11e023a0 100644 --- a/annofabcli/instruction/subcommand_instruction.py +++ b/annofabcli/instruction/subcommand_instruction.py @@ -10,7 +10,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/job/subcommand_job.py b/annofabcli/job/subcommand_job.py index 8788bdad..7fbf93f0 100644 --- a/annofabcli/job/subcommand_job.py +++ b/annofabcli/job/subcommand_job.py @@ -11,7 +11,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/my_account/subcommand_my_account.py b/annofabcli/my_account/subcommand_my_account.py index 53565333..d4a41fe3 100644 --- a/annofabcli/my_account/subcommand_my_account.py +++ b/annofabcli/my_account/subcommand_my_account.py @@ -7,7 +7,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/organization/subcommand_organization.py b/annofabcli/organization/subcommand_organization.py index 42643965..63397a0f 100644 --- a/annofabcli/organization/subcommand_organization.py +++ b/annofabcli/organization/subcommand_organization.py @@ -7,7 +7,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/organization_member/subcommand_organization_member.py b/annofabcli/organization_member/subcommand_organization_member.py index 411f05a5..58118640 100644 --- a/annofabcli/organization_member/subcommand_organization_member.py +++ b/annofabcli/organization_member/subcommand_organization_member.py @@ -10,7 +10,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/project/change_project_status.py b/annofabcli/project/change_project_status.py index c400a1f5..f9d08fad 100644 --- a/annofabcli/project/change_project_status.py +++ b/annofabcli/project/change_project_status.py @@ -171,7 +171,6 @@ def main(args): def parse_args(parser: argparse.ArgumentParser): - parser.add_argument( "-p", "--project_id", diff --git a/annofabcli/project/put_project.py b/annofabcli/project/put_project.py index 673ca9e0..eb7484ec 100644 --- a/annofabcli/project/put_project.py +++ b/annofabcli/project/put_project.py @@ -25,7 +25,6 @@ def put_project( overview: Optional[str], plugin_id: Optional[str], ): - new_project_id = project_id if project_id is not None else str(uuid.uuid4()) request_body = { diff --git a/annofabcli/project/subcommand_project.py b/annofabcli/project/subcommand_project.py index d1750534..490e7b1f 100644 --- a/annofabcli/project/subcommand_project.py +++ b/annofabcli/project/subcommand_project.py @@ -11,7 +11,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/project_member/subcommand_project_member.py b/annofabcli/project_member/subcommand_project_member.py index fda66a4d..ed65c667 100644 --- a/annofabcli/project_member/subcommand_project_member.py +++ b/annofabcli/project_member/subcommand_project_member.py @@ -12,7 +12,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/stat_visualization/mask_visualization_dir.py b/annofabcli/stat_visualization/mask_visualization_dir.py index 054044a1..3972fba3 100755 --- a/annofabcli/stat_visualization/mask_visualization_dir.py +++ b/annofabcli/stat_visualization/mask_visualization_dir.py @@ -181,7 +181,6 @@ def main(args): def parse_args(parser: argparse.ArgumentParser): - parser.add_argument( "--dir", type=Path, diff --git a/annofabcli/stat_visualization/subcommand_stat_visualization.py b/annofabcli/stat_visualization/subcommand_stat_visualization.py index 6f30cfd9..fe66c117 100644 --- a/annofabcli/stat_visualization/subcommand_stat_visualization.py +++ b/annofabcli/stat_visualization/subcommand_stat_visualization.py @@ -9,7 +9,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/stat_visualization/summarise_whole_performance_csv.py b/annofabcli/stat_visualization/summarise_whole_performance_csv.py index 748bae10..723c2f82 100644 --- a/annofabcli/stat_visualization/summarise_whole_performance_csv.py +++ b/annofabcli/stat_visualization/summarise_whole_performance_csv.py @@ -19,7 +19,6 @@ def main(args): def parse_args(parser: argparse.ArgumentParser): - parser.add_argument( "--dir", type=Path, diff --git a/annofabcli/stat_visualization/write_graph.py b/annofabcli/stat_visualization/write_graph.py index 8e43d0d5..b6086eb5 100755 --- a/annofabcli/stat_visualization/write_graph.py +++ b/annofabcli/stat_visualization/write_graph.py @@ -74,7 +74,6 @@ def write_line_graph(self, task: Task): ) def main(self): - try: # メンバのパフォーマンスを散布図で出力する self.output_project_dir.write_user_performance_scatter_plot(self.project_dir.read_user_performance()) @@ -122,7 +121,6 @@ def main(args): def parse_args(parser: argparse.ArgumentParser): - parser.add_argument( "--dir", type=Path, diff --git a/annofabcli/stat_visualization/write_performance_rating_csv.py b/annofabcli/stat_visualization/write_performance_rating_csv.py index dd106a8e..965d44d2 100755 --- a/annofabcli/stat_visualization/write_performance_rating_csv.py +++ b/annofabcli/stat_visualization/write_performance_rating_csv.py @@ -423,7 +423,6 @@ def __init__( self.user_ids = user_ids def write(self, df: pandas.DataFrame, csv_basename: str, output_dir: Path): - print_csv(df, str(output_dir / f"{csv_basename}.csv")) # 偏差値のCSVを出力 diff --git a/annofabcli/statistics/list_annotation_count.py b/annofabcli/statistics/list_annotation_count.py index d529e33f..83a479e4 100644 --- a/annofabcli/statistics/list_annotation_count.py +++ b/annofabcli/statistics/list_annotation_count.py @@ -112,7 +112,6 @@ class AnnotationCounter(abc.ABC): @dataclass(frozen=True) class AnnotationCounterByTask(AnnotationCounter, DataClassJsonMixin): - task_id: str status: TaskStatus phase: TaskPhase @@ -178,7 +177,6 @@ def __init__( non_target_attribute_names: Optional[Collection[AttributeNameKey]] = None, frame_no_map: Optional[dict[tuple[str, str], int]] = None, ): - self.target_labels = set(target_labels) if target_labels is not None else None self.target_attribute_names = set(target_attribute_names) if target_attribute_names is not None else None self.non_target_labels = set(non_target_labels) if non_target_labels is not None else None @@ -373,7 +371,6 @@ def get_annotation_counter_list( target_task_ids: Optional[Collection[str]] = None, task_query: Optional[TaskQuery] = None, ) -> list[AnnotationCounterByTask]: - """ アノテーションzipまたはそれを展開したディレクトリから、ラベルごと/属性ごとのアノテーション数を集計情報を取得する。 @@ -436,7 +433,7 @@ def _only_selective_attribute(self, columns: list[AttributeValueKey]) -> list[At CSVの列数を増やしすぎないための対策。 """ attribute_name_list: list[AttributeNameKey] = [] - for (label, attribute_name, _) in columns: + for label, attribute_name, _ in columns: attribute_name_list.append((label, attribute_name)) non_selective_attribute_names = { diff --git a/annofabcli/statistics/list_worktime.py b/annofabcli/statistics/list_worktime.py index a6be99a9..e71bcbe3 100644 --- a/annofabcli/statistics/list_worktime.py +++ b/annofabcli/statistics/list_worktime.py @@ -34,7 +34,6 @@ def _get_worktime_dict_from_event(event: WorktimeFromTaskHistoryEvent) -> Workti worktime_hour = (dt_end - dt_start).total_seconds() / 3600 dict_result[(str(dt_start.date()), event.account_id, event.phase)] = worktime_hour else: - jst_tzinfo = datetime.timezone(datetime.timedelta(hours=9)) dt_tmp_start = dt_start @@ -121,7 +120,6 @@ def print_worktime_list( project_id: str, task_history_event_json: Optional[Path], ): - super().validate_project(project_id, project_member_roles=None) main_obj = ListWorktimeFromTaskHistoryEventMain(self.service, project_id=project_id) diff --git a/annofabcli/statistics/subcommand_statistics.py b/annofabcli/statistics/subcommand_statistics.py index fdc3819a..58a2c7a3 100644 --- a/annofabcli/statistics/subcommand_statistics.py +++ b/annofabcli/statistics/subcommand_statistics.py @@ -14,7 +14,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/statistics/visualization/dataframe/productivity_per_date.py b/annofabcli/statistics/visualization/dataframe/productivity_per_date.py index 9b0f64e0..a5aeb3be 100644 --- a/annofabcli/statistics/visualization/dataframe/productivity_per_date.py +++ b/annofabcli/statistics/visualization/dataframe/productivity_per_date.py @@ -476,7 +476,6 @@ def plot_input_data_metrics( self._plot(line_graph_list, output_file) def to_csv(self, output_file: Path) -> None: - if not self._validate_df_for_output(output_file): return diff --git a/annofabcli/statistics/visualization/dataframe/user_performance.py b/annofabcli/statistics/visualization/dataframe/user_performance.py index 33c5ad38..b638d9b7 100644 --- a/annofabcli/statistics/visualization/dataframe/user_performance.py +++ b/annofabcli/statistics/visualization/dataframe/user_performance.py @@ -397,7 +397,6 @@ def get_productivity_columns(phase_list: list[str]) -> list[tuple[str, str]]: return prior_columns def to_csv(self, output_file: Path) -> None: - if not self._validate_df_for_output(output_file): return diff --git a/annofabcli/statistics/visualization/dataframe/whole_productivity_per_date.py b/annofabcli/statistics/visualization/dataframe/whole_productivity_per_date.py index 9e47f23e..a82f3704 100644 --- a/annofabcli/statistics/visualization/dataframe/whole_productivity_per_date.py +++ b/annofabcli/statistics/visualization/dataframe/whole_productivity_per_date.py @@ -670,7 +670,6 @@ def create_task_line_graph() -> LineGraph: return line_graph def create_input_data_line_graph() -> LineGraph: - line_graph = create_line_graph( title="日ごとの累積入力データ数と累積作業時間", y_axis_label="入力データ数", @@ -725,7 +724,6 @@ def create_input_data_line_graph() -> LineGraph: return line_graph def create_worktime_line_graph() -> LineGraph: - line_graph = create_line_graph( title="日ごとの累積作業時間", y_axis_label="作業時間[hour]", @@ -1142,7 +1140,6 @@ def create_task_graph() -> LineGraph: return line_graph def create_input_data_graph() -> LineGraph: - line_graph = create_line_graph( title="教師付開始日ごとの入力データ数と計測作業時間", y_axis_label="入力データ数", diff --git a/annofabcli/statistics/visualization/dataframe/worktime_per_date.py b/annofabcli/statistics/visualization/dataframe/worktime_per_date.py index 195bb1d2..42b9f890 100644 --- a/annofabcli/statistics/visualization/dataframe/worktime_per_date.py +++ b/annofabcli/statistics/visualization/dataframe/worktime_per_date.py @@ -241,7 +241,6 @@ def _get_cumulative_dataframe(df: pandas.DataFrame) -> pandas.DataFrame: @classmethod def merge(cls, obj1: WorktimePerDate, obj2: WorktimePerDate) -> WorktimePerDate: - df_tmp = pandas.concat([obj1.df, obj2.df]) df = df_tmp.groupby(["date", "user_id"])[ diff --git a/annofabcli/statistics/visualize_annotation_count.py b/annofabcli/statistics/visualize_annotation_count.py index db1f69f9..6a244c5c 100644 --- a/annofabcli/statistics/visualize_annotation_count.py +++ b/annofabcli/statistics/visualize_annotation_count.py @@ -56,7 +56,7 @@ def _only_selective_attribute(columns: list[AttributeValueKey]) -> list[Attribut """ SELECTIVE_ATTRIBUTE_VALUE_MAX_COUNT = 20 attribute_name_list: list[AttributeNameKey] = [] - for (label, attribute_name, _) in columns: + for label, attribute_name, _ in columns: attribute_name_list.append((label, attribute_name)) non_selective_attribute_names = { @@ -149,7 +149,6 @@ def plot_attribute_histogram( prior_keys: Optional[list[AttributeValueKey]] = None, bins: int = 20, ): - all_key_set = {key for c in counter_list for key in c.annotation_count_by_attribute} if prior_keys is not None: remaining_columns = list(all_key_set - set(prior_keys)) diff --git a/annofabcli/statistics/visualize_statistics.py b/annofabcli/statistics/visualize_statistics.py index a556b5c7..080eb793 100644 --- a/annofabcli/statistics/visualize_statistics.py +++ b/annofabcli/statistics/visualize_statistics.py @@ -150,7 +150,6 @@ def write_cumulative_linegraph_by_user(self, user_id_list: Optional[List[str]] = acceptor_obj = AcceptorCumulativeProductivity(df_task) if not self.output_only_text: - self.project_dir.write_cumulative_line_graph( annotator_obj, phase=TaskPhase.ANNOTATION, user_id_list=user_id_list, minimal_output=self.minimal_output ) @@ -364,7 +363,6 @@ def visualize_statistics_for_project_list( *, parallelism: Optional[int] = None, ) -> List[Path]: - output_project_dir_list: List[Path] = [] wrap = functools.partial(self.visualize_statistics_wrapper, root_output_dir=root_output_dir) @@ -420,7 +418,6 @@ def main(self): df_labor = pandas.read_csv(args.labor_csv) if args.labor_csv is not None else None with tempfile.TemporaryDirectory() as str_temp_dir: - main_obj = VisualizingStatisticsMain( service=self.service, temp_dir=Path(str_temp_dir), @@ -483,7 +480,6 @@ def main(args): def parse_args(parser: argparse.ArgumentParser): - parser.add_argument( "-p", "--project_id", diff --git a/annofabcli/supplementary/put_supplementary_data.py b/annofabcli/supplementary/put_supplementary_data.py index eb53a6d9..a2214192 100644 --- a/annofabcli/supplementary/put_supplementary_data.py +++ b/annofabcli/supplementary/put_supplementary_data.py @@ -77,7 +77,6 @@ def __init__(self, service: annofabapi.Resource, facade: AnnofabApiFacade, all_y self.supplementary_data_cache: Dict[str, List[SupplementaryData]] = {} def put_supplementary_data(self, project_id: str, supplementary_data: SupplementaryDataForPut): - file_path = get_file_scheme_path(supplementary_data.supplementary_data_path) if file_path is not None: request_body = { diff --git a/annofabcli/supplementary/subcommand_supplementary.py b/annofabcli/supplementary/subcommand_supplementary.py index 56e42d50..c4d0877c 100644 --- a/annofabcli/supplementary/subcommand_supplementary.py +++ b/annofabcli/supplementary/subcommand_supplementary.py @@ -9,7 +9,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/task/cancel_acceptance.py b/annofabcli/task/cancel_acceptance.py index 90ad39bd..cf2e788b 100644 --- a/annofabcli/task/cancel_acceptance.py +++ b/annofabcli/task/cancel_acceptance.py @@ -210,7 +210,6 @@ class CancelAcceptance(AbstractCommandLineInterface): @classmethod def validate(cls, args: argparse.Namespace) -> bool: - if args.parallelism is not None and not args.yes: print( f"{cls.COMMON_MESSAGE} argument --parallelism: '--parallelism'を指定するときは、'--yes' を指定してください。", diff --git a/annofabcli/task/complete_tasks.py b/annofabcli/task/complete_tasks.py index 79f184f6..36b974d2 100644 --- a/annofabcli/task/complete_tasks.py +++ b/annofabcli/task/complete_tasks.py @@ -110,7 +110,6 @@ def update_status_of_inspections( comment_list: List[dict[str, Any]], comment_status: CommentStatus, ): - if comment_list is None or len(comment_list) == 0: logger.warning(f"変更対象の検査コメントはなかった。task_id = {task.task_id}, input_data_id = {input_data_id}") return @@ -301,7 +300,6 @@ def complete_task_for_inspection_acceptance_phase( task: Task, inspection_status: Optional[CommentStatus] = None, ) -> bool: - unprocessed_inspection_list_dict: Dict[str, List[Inspection]] = {} for input_data_id in task.input_data_id_list: unprocessed_inspection_list = self.get_unprocessed_inspection_list(task, input_data_id) diff --git a/annofabcli/task/copy_tasks.py b/annofabcli/task/copy_tasks.py index ee3a979e..5cc7f498 100644 --- a/annofabcli/task/copy_tasks.py +++ b/annofabcli/task/copy_tasks.py @@ -156,7 +156,6 @@ class CopyTasks(AbstractCommandLineInterface): COMMON_MESSAGE = "annofabcli task copy: error:" def validate(self, args: argparse.Namespace) -> bool: - if args.parallelism is not None and not args.yes: print( f"{self.COMMON_MESSAGE} argument --parallelism: '--parallelism'を指定するときは、必ず '--yes' を指定してください。", diff --git a/annofabcli/task/list_all_tasks_added_task_history.py b/annofabcli/task/list_all_tasks_added_task_history.py index 1f666251..f2683441 100644 --- a/annofabcli/task/list_all_tasks_added_task_history.py +++ b/annofabcli/task/list_all_tasks_added_task_history.py @@ -48,7 +48,6 @@ def get_detail_task_list( obj = AddingAdditionalInfoToTask(self.service, project_id=self.project_id) for task in task_list: - obj.add_additional_info_to_task(task) task_id = task["task_id"] diff --git a/annofabcli/task/reject_tasks.py b/annofabcli/task/reject_tasks.py index ea44945b..c144261a 100644 --- a/annofabcli/task/reject_tasks.py +++ b/annofabcli/task/reject_tasks.py @@ -366,7 +366,6 @@ class RejectTasks(AbstractCommandLineInterface): COMMON_MESSAGE = "annofabcli task reject: error:" def validate(self, args: argparse.Namespace) -> bool: - if args.parallelism is not None and not args.yes: print( f"{self.COMMON_MESSAGE} argument --parallelism: '--parallelism'を指定するときは、'--yes' を指定してください。", diff --git a/annofabcli/task/subcommand_task.py b/annofabcli/task/subcommand_task.py index 50c48d45..f5c52b92 100644 --- a/annofabcli/task/subcommand_task.py +++ b/annofabcli/task/subcommand_task.py @@ -21,7 +21,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/task_history/subcommand_task_history.py b/annofabcli/task_history/subcommand_task_history.py index a8d43911..fb60304b 100644 --- a/annofabcli/task_history/subcommand_task_history.py +++ b/annofabcli/task_history/subcommand_task_history.py @@ -9,7 +9,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/annofabcli/task_history_event/list_all_task_history_event.py b/annofabcli/task_history_event/list_all_task_history_event.py index 15e9692b..a1ceafc8 100644 --- a/annofabcli/task_history_event/list_all_task_history_event.py +++ b/annofabcli/task_history_event/list_all_task_history_event.py @@ -77,7 +77,6 @@ def print_task_history_event_list( task_id_list: Optional[list[str]], arg_format: FormatArgument, ): - super().validate_project(project_id, project_member_roles=None) main_obj = ListTaskHistoryEventWithJsonMain(self.service) diff --git a/annofabcli/task_history_event/list_worktime.py b/annofabcli/task_history_event/list_worktime.py index bcceae00..37aff073 100644 --- a/annofabcli/task_history_event/list_worktime.py +++ b/annofabcli/task_history_event/list_worktime.py @@ -241,7 +241,6 @@ def print_worktime_from_task_history_event( user_id_list: Optional[list[str]], arg_format: FormatArgument, ): - super().validate_project(project_id, project_member_roles=None) main_obj = ListWorktimeFromTaskHistoryEventMain(self.service, project_id=project_id) diff --git a/annofabcli/task_history_event/subcommand_task_history_event.py b/annofabcli/task_history_event/subcommand_task_history_event.py index 3265c741..d057d019 100644 --- a/annofabcli/task_history_event/subcommand_task_history_event.py +++ b/annofabcli/task_history_event/subcommand_task_history_event.py @@ -8,7 +8,6 @@ def parse_args(parser: argparse.ArgumentParser): - subparsers = parser.add_subparsers(dest="subcommand_name") # サブコマンドの定義 diff --git a/poetry.lock b/poetry.lock index 864eb9c3..02eb5038 100644 --- a/poetry.lock +++ b/poetry.lock @@ -565,7 +565,7 @@ python-versions = ">=3.7" [[package]] name = "mypy" -version = "0.991" +version = "1.0.0" description = "Optional static typing for Python" category = "dev" optional = false @@ -584,15 +584,15 @@ reports = ["lxml"] [[package]] name = "mypy-extensions" -version = "0.4.3" -description = "Experimental type system extensions for programs checked with the mypy typechecker." +version = "1.0.0" +description = "Type system extensions for programs checked with the mypy type checker." category = "main" optional = false -python-versions = "*" +python-versions = ">=3.5" [[package]] name = "numpy" -version = "1.24.1" +version = "1.24.2" description = "Fundamental package for array computing in Python" category = "main" optional = false @@ -690,15 +690,15 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa [[package]] name = "platformdirs" -version = "2.6.2" +version = "3.0.0" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." category = "dev" optional = false python-versions = ">=3.7" [package.extras] -docs = ["furo (>=2022.12.7)", "proselint (>=0.13)", "sphinx-autodoc-typehints (>=1.19.5)", "sphinx (>=5.3)"] -test = ["appdirs (==1.4.4)", "covdefaults (>=2.2.2)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest (>=7.2)"] +docs = ["furo (>=2022.12.7)", "proselint (>=0.13)", "sphinx-autodoc-typehints (>=1.22,!=1.23.4)", "sphinx (>=6.1.3)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.2.2)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest (>=7.2.1)"] [[package]] name = "pluggy" @@ -815,7 +815,7 @@ python-versions = ">=3.7" [[package]] name = "pylint" -version = "2.16.0" +version = "2.16.1" description = "python code static checker" category = "dev" optional = false @@ -1188,7 +1188,7 @@ python-versions = "*" [[package]] name = "types-pyyaml" -version = "6.0.12.3" +version = "6.0.12.4" description = "Typing stubs for PyYAML" category = "dev" optional = false @@ -1196,7 +1196,7 @@ python-versions = "*" [[package]] name = "types-requests" -version = "2.28.11.8" +version = "2.28.11.11" description = "Typing stubs for requests" category = "dev" optional = false @@ -1207,7 +1207,7 @@ types-urllib3 = "<1.27" [[package]] name = "types-urllib3" -version = "1.26.25.4" +version = "1.26.25.5" description = "Typing stubs for urllib3" category = "dev" optional = false @@ -1774,70 +1774,66 @@ more-itertools = [ {file = "more_itertools-9.0.0-py3-none-any.whl", hash = "sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41"}, ] mypy = [ - {file = "mypy-0.991-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7d17e0a9707d0772f4a7b878f04b4fd11f6f5bcb9b3813975a9b13c9332153ab"}, - {file = "mypy-0.991-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0714258640194d75677e86c786e80ccf294972cc76885d3ebbb560f11db0003d"}, - {file = "mypy-0.991-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0c8f3be99e8a8bd403caa8c03be619544bc2c77a7093685dcf308c6b109426c6"}, - {file = "mypy-0.991-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc9ec663ed6c8f15f4ae9d3c04c989b744436c16d26580eaa760ae9dd5d662eb"}, - {file = "mypy-0.991-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:4307270436fd7694b41f913eb09210faff27ea4979ecbcd849e57d2da2f65305"}, - {file = "mypy-0.991-cp310-cp310-win_amd64.whl", hash = "sha256:901c2c269c616e6cb0998b33d4adbb4a6af0ac4ce5cd078afd7bc95830e62c1c"}, - {file = "mypy-0.991-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d13674f3fb73805ba0c45eb6c0c3053d218aa1f7abead6e446d474529aafc372"}, - {file = "mypy-0.991-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1c8cd4fb70e8584ca1ed5805cbc7c017a3d1a29fb450621089ffed3e99d1857f"}, - {file = "mypy-0.991-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:209ee89fbb0deed518605edddd234af80506aec932ad28d73c08f1400ef80a33"}, - {file = "mypy-0.991-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:37bd02ebf9d10e05b00d71302d2c2e6ca333e6c2a8584a98c00e038db8121f05"}, - {file = "mypy-0.991-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:26efb2fcc6b67e4d5a55561f39176821d2adf88f2745ddc72751b7890f3194ad"}, - {file = "mypy-0.991-cp311-cp311-win_amd64.whl", hash = "sha256:3a700330b567114b673cf8ee7388e949f843b356a73b5ab22dd7cff4742a5297"}, - {file = "mypy-0.991-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:1f7d1a520373e2272b10796c3ff721ea1a0712288cafaa95931e66aa15798813"}, - {file = "mypy-0.991-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:641411733b127c3e0dab94c45af15fea99e4468f99ac88b39efb1ad677da5711"}, - {file = "mypy-0.991-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:3d80e36b7d7a9259b740be6d8d906221789b0d836201af4234093cae89ced0cd"}, - {file = "mypy-0.991-cp37-cp37m-win_amd64.whl", hash = "sha256:e62ebaad93be3ad1a828a11e90f0e76f15449371ffeecca4a0a0b9adc99abcef"}, - {file = "mypy-0.991-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:b86ce2c1866a748c0f6faca5232059f881cda6dda2a893b9a8373353cfe3715a"}, - {file = "mypy-0.991-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ac6e503823143464538efda0e8e356d871557ef60ccd38f8824a4257acc18d93"}, - {file = "mypy-0.991-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:0cca5adf694af539aeaa6ac633a7afe9bbd760df9d31be55ab780b77ab5ae8bf"}, - {file = "mypy-0.991-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a12c56bf73cdab116df96e4ff39610b92a348cc99a1307e1da3c3768bbb5b135"}, - {file = "mypy-0.991-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:652b651d42f155033a1967739788c436491b577b6a44e4c39fb340d0ee7f0d70"}, - {file = "mypy-0.991-cp38-cp38-win_amd64.whl", hash = "sha256:4175593dc25d9da12f7de8de873a33f9b2b8bdb4e827a7cae952e5b1a342e243"}, - {file = "mypy-0.991-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:98e781cd35c0acf33eb0295e8b9c55cdbef64fcb35f6d3aa2186f289bed6e80d"}, - {file = "mypy-0.991-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6d7464bac72a85cb3491c7e92b5b62f3dcccb8af26826257760a552a5e244aa5"}, - {file = "mypy-0.991-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c9166b3f81a10cdf9b49f2d594b21b31adadb3d5e9db9b834866c3258b695be3"}, - {file = "mypy-0.991-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8472f736a5bfb159a5e36740847808f6f5b659960115ff29c7cecec1741c648"}, - {file = "mypy-0.991-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5e80e758243b97b618cdf22004beb09e8a2de1af481382e4d84bc52152d1c476"}, - {file = "mypy-0.991-cp39-cp39-win_amd64.whl", hash = "sha256:74e259b5c19f70d35fcc1ad3d56499065c601dfe94ff67ae48b85596b9ec1461"}, - {file = "mypy-0.991-py3-none-any.whl", hash = "sha256:de32edc9b0a7e67c2775e574cb061a537660e51210fbf6006b0b36ea695ae9bb"}, - {file = "mypy-0.991.tar.gz", hash = "sha256:3c0165ba8f354a6d9881809ef29f1a9318a236a6d81c690094c5df32107bde06"}, + {file = "mypy-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e0626db16705ab9f7fa6c249c017c887baf20738ce7f9129da162bb3075fc1af"}, + {file = "mypy-1.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1ace23f6bb4aec4604b86c4843276e8fa548d667dbbd0cb83a3ae14b18b2db6c"}, + {file = "mypy-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87edfaf344c9401942883fad030909116aa77b0fa7e6e8e1c5407e14549afe9a"}, + {file = "mypy-1.0.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:0ab090d9240d6b4e99e1fa998c2d0aa5b29fc0fb06bd30e7ad6183c95fa07593"}, + {file = "mypy-1.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:7cc2c01dfc5a3cbddfa6c13f530ef3b95292f926329929001d45e124342cd6b7"}, + {file = "mypy-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:14d776869a3e6c89c17eb943100f7868f677703c8a4e00b3803918f86aafbc52"}, + {file = "mypy-1.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bb2782a036d9eb6b5a6efcdda0986774bf798beef86a62da86cb73e2a10b423d"}, + {file = "mypy-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5cfca124f0ac6707747544c127880893ad72a656e136adc935c8600740b21ff5"}, + {file = "mypy-1.0.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8845125d0b7c57838a10fd8925b0f5f709d0e08568ce587cc862aacce453e3dd"}, + {file = "mypy-1.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:01b1b9e1ed40544ef486fa8ac022232ccc57109f379611633ede8e71630d07d2"}, + {file = "mypy-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c7cf862aef988b5fbaa17764ad1d21b4831436701c7d2b653156a9497d92c83c"}, + {file = "mypy-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5cd187d92b6939617f1168a4fe68f68add749902c010e66fe574c165c742ed88"}, + {file = "mypy-1.0.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:4e5175026618c178dfba6188228b845b64131034ab3ba52acaffa8f6c361f805"}, + {file = "mypy-1.0.0-cp37-cp37m-win_amd64.whl", hash = "sha256:2f6ac8c87e046dc18c7d1d7f6653a66787a4555085b056fe2d599f1f1a2a2d21"}, + {file = "mypy-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:7306edca1c6f1b5fa0bc9aa645e6ac8393014fa82d0fa180d0ebc990ebe15964"}, + {file = "mypy-1.0.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:3cfad08f16a9c6611e6143485a93de0e1e13f48cfb90bcad7d5fde1c0cec3d36"}, + {file = "mypy-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:67cced7f15654710386e5c10b96608f1ee3d5c94ca1da5a2aad5889793a824c1"}, + {file = "mypy-1.0.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:a86b794e8a56ada65c573183756eac8ac5b8d3d59daf9d5ebd72ecdbb7867a43"}, + {file = "mypy-1.0.0-cp38-cp38-win_amd64.whl", hash = "sha256:50979d5efff8d4135d9db293c6cb2c42260e70fb010cbc697b1311a4d7a39ddb"}, + {file = "mypy-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3ae4c7a99e5153496243146a3baf33b9beff714464ca386b5f62daad601d87af"}, + {file = "mypy-1.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5e398652d005a198a7f3c132426b33c6b85d98aa7dc852137a2a3be8890c4072"}, + {file = "mypy-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:be78077064d016bc1b639c2cbcc5be945b47b4261a4f4b7d8923f6c69c5c9457"}, + {file = "mypy-1.0.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:92024447a339400ea00ac228369cd242e988dd775640755fa4ac0c126e49bb74"}, + {file = "mypy-1.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:fe523fcbd52c05040c7bee370d66fee8373c5972171e4fbc323153433198592d"}, + {file = "mypy-1.0.0-py3-none-any.whl", hash = "sha256:2efa963bdddb27cb4a0d42545cd137a8d2b883bd181bbc4525b568ef6eca258f"}, + {file = "mypy-1.0.0.tar.gz", hash = "sha256:f34495079c8d9da05b183f9f7daec2878280c2ad7cc81da686ef0b484cea2ecf"}, ] mypy-extensions = [ - {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"}, - {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"}, + {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, + {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, ] numpy = [ - {file = "numpy-1.24.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:179a7ef0889ab769cc03573b6217f54c8bd8e16cef80aad369e1e8185f994cd7"}, - {file = "numpy-1.24.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b09804ff570b907da323b3d762e74432fb07955701b17b08ff1b5ebaa8cfe6a9"}, - {file = "numpy-1.24.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f1b739841821968798947d3afcefd386fa56da0caf97722a5de53e07c4ccedc7"}, - {file = "numpy-1.24.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0e3463e6ac25313462e04aea3fb8a0a30fb906d5d300f58b3bc2c23da6a15398"}, - {file = "numpy-1.24.1-cp310-cp310-win32.whl", hash = "sha256:b31da69ed0c18be8b77bfce48d234e55d040793cebb25398e2a7d84199fbc7e2"}, - {file = "numpy-1.24.1-cp310-cp310-win_amd64.whl", hash = "sha256:b07b40f5fb4fa034120a5796288f24c1fe0e0580bbfff99897ba6267af42def2"}, - {file = "numpy-1.24.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7094891dcf79ccc6bc2a1f30428fa5edb1e6fb955411ffff3401fb4ea93780a8"}, - {file = "numpy-1.24.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:28e418681372520c992805bb723e29d69d6b7aa411065f48216d8329d02ba032"}, - {file = "numpy-1.24.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e274f0f6c7efd0d577744f52032fdd24344f11c5ae668fe8d01aac0422611df1"}, - {file = "numpy-1.24.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0044f7d944ee882400890f9ae955220d29b33d809a038923d88e4e01d652acd9"}, - {file = "numpy-1.24.1-cp311-cp311-win32.whl", hash = "sha256:442feb5e5bada8408e8fcd43f3360b78683ff12a4444670a7d9e9824c1817d36"}, - {file = "numpy-1.24.1-cp311-cp311-win_amd64.whl", hash = "sha256:de92efa737875329b052982e37bd4371d52cabf469f83e7b8be9bb7752d67e51"}, - {file = "numpy-1.24.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b162ac10ca38850510caf8ea33f89edcb7b0bb0dfa5592d59909419986b72407"}, - {file = "numpy-1.24.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:26089487086f2648944f17adaa1a97ca6aee57f513ba5f1c0b7ebdabbe2b9954"}, - {file = "numpy-1.24.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:caf65a396c0d1f9809596be2e444e3bd4190d86d5c1ce21f5fc4be60a3bc5b36"}, - {file = "numpy-1.24.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b0677a52f5d896e84414761531947c7a330d1adc07c3a4372262f25d84af7bf7"}, - {file = "numpy-1.24.1-cp38-cp38-win32.whl", hash = "sha256:dae46bed2cb79a58d6496ff6d8da1e3b95ba09afeca2e277628171ca99b99db1"}, - {file = "numpy-1.24.1-cp38-cp38-win_amd64.whl", hash = "sha256:6ec0c021cd9fe732e5bab6401adea5a409214ca5592cd92a114f7067febcba0c"}, - {file = "numpy-1.24.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:28bc9750ae1f75264ee0f10561709b1462d450a4808cd97c013046073ae64ab6"}, - {file = "numpy-1.24.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:84e789a085aabef2f36c0515f45e459f02f570c4b4c4c108ac1179c34d475ed7"}, - {file = "numpy-1.24.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e669fbdcdd1e945691079c2cae335f3e3a56554e06bbd45d7609a6cf568c700"}, - {file = "numpy-1.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ef85cf1f693c88c1fd229ccd1055570cb41cdf4875873b7728b6301f12cd05bf"}, - {file = "numpy-1.24.1-cp39-cp39-win32.whl", hash = "sha256:87a118968fba001b248aac90e502c0b13606721b1343cdaddbc6e552e8dfb56f"}, - {file = "numpy-1.24.1-cp39-cp39-win_amd64.whl", hash = "sha256:ddc7ab52b322eb1e40521eb422c4e0a20716c271a306860979d450decbb51b8e"}, - {file = "numpy-1.24.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ed5fb71d79e771ec930566fae9c02626b939e37271ec285e9efaf1b5d4370e7d"}, - {file = "numpy-1.24.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad2925567f43643f51255220424c23d204024ed428afc5aad0f86f3ffc080086"}, - {file = "numpy-1.24.1-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:cfa1161c6ac8f92dea03d625c2d0c05e084668f4a06568b77a25a89111621566"}, - {file = "numpy-1.24.1.tar.gz", hash = "sha256:2386da9a471cc00a1f47845e27d916d5ec5346ae9696e01a8a34760858fe9dd2"}, + {file = "numpy-1.24.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:eef70b4fc1e872ebddc38cddacc87c19a3709c0e3e5d20bf3954c147b1dd941d"}, + {file = "numpy-1.24.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e8d2859428712785e8a8b7d2b3ef0a1d1565892367b32f915c4a4df44d0e64f5"}, + {file = "numpy-1.24.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6524630f71631be2dabe0c541e7675db82651eb998496bbe16bc4f77f0772253"}, + {file = "numpy-1.24.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a51725a815a6188c662fb66fb32077709a9ca38053f0274640293a14fdd22978"}, + {file = "numpy-1.24.2-cp310-cp310-win32.whl", hash = "sha256:2620e8592136e073bd12ee4536149380695fbe9ebeae845b81237f986479ffc9"}, + {file = "numpy-1.24.2-cp310-cp310-win_amd64.whl", hash = "sha256:97cf27e51fa078078c649a51d7ade3c92d9e709ba2bfb97493007103c741f1d0"}, + {file = "numpy-1.24.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7de8fdde0003f4294655aa5d5f0a89c26b9f22c0a58790c38fae1ed392d44a5a"}, + {file = "numpy-1.24.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4173bde9fa2a005c2c6e2ea8ac1618e2ed2c1c6ec8a7657237854d42094123a0"}, + {file = "numpy-1.24.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4cecaed30dc14123020f77b03601559fff3e6cd0c048f8b5289f4eeabb0eb281"}, + {file = "numpy-1.24.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a23f8440561a633204a67fb44617ce2a299beecf3295f0d13c495518908e910"}, + {file = "numpy-1.24.2-cp311-cp311-win32.whl", hash = "sha256:e428c4fbfa085f947b536706a2fc349245d7baa8334f0c5723c56a10595f9b95"}, + {file = "numpy-1.24.2-cp311-cp311-win_amd64.whl", hash = "sha256:557d42778a6869c2162deb40ad82612645e21d79e11c1dc62c6e82a2220ffb04"}, + {file = "numpy-1.24.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d0a2db9d20117bf523dde15858398e7c0858aadca7c0f088ac0d6edd360e9ad2"}, + {file = "numpy-1.24.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:c72a6b2f4af1adfe193f7beb91ddf708ff867a3f977ef2ec53c0ffb8283ab9f5"}, + {file = "numpy-1.24.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c29e6bd0ec49a44d7690ecb623a8eac5ab8a923bce0bea6293953992edf3a76a"}, + {file = "numpy-1.24.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2eabd64ddb96a1239791da78fa5f4e1693ae2dadc82a76bc76a14cbb2b966e96"}, + {file = "numpy-1.24.2-cp38-cp38-win32.whl", hash = "sha256:e3ab5d32784e843fc0dd3ab6dcafc67ef806e6b6828dc6af2f689be0eb4d781d"}, + {file = "numpy-1.24.2-cp38-cp38-win_amd64.whl", hash = "sha256:76807b4063f0002c8532cfeac47a3068a69561e9c8715efdad3c642eb27c0756"}, + {file = "numpy-1.24.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4199e7cfc307a778f72d293372736223e39ec9ac096ff0a2e64853b866a8e18a"}, + {file = "numpy-1.24.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:adbdce121896fd3a17a77ab0b0b5eedf05a9834a18699db6829a64e1dfccca7f"}, + {file = "numpy-1.24.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:889b2cc88b837d86eda1b17008ebeb679d82875022200c6e8e4ce6cf549b7acb"}, + {file = "numpy-1.24.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f64bb98ac59b3ea3bf74b02f13836eb2e24e48e0ab0145bbda646295769bd780"}, + {file = "numpy-1.24.2-cp39-cp39-win32.whl", hash = "sha256:63e45511ee4d9d976637d11e6c9864eae50e12dc9598f531c035265991910468"}, + {file = "numpy-1.24.2-cp39-cp39-win_amd64.whl", hash = "sha256:a77d3e1163a7770164404607b7ba3967fb49b24782a6ef85d9b5f54126cc39e5"}, + {file = "numpy-1.24.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:92011118955724465fb6853def593cf397b4a1367495e0b59a7e69d40c4eb71d"}, + {file = "numpy-1.24.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9006288bcf4895917d02583cf3411f98631275bc67cce355a7f39f8c14338fa"}, + {file = "numpy-1.24.2-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:150947adbdfeceec4e5926d956a06865c1c690f2fd902efede4ca6fe2e657c3f"}, + {file = "numpy-1.24.2.tar.gz", hash = "sha256:003a9f530e880cb2cd177cba1af7220b9aa42def9c4afc2a2fc3ee6be7eb2b22"}, ] packaging = [ {file = "packaging-23.0-py3-none-any.whl", hash = "sha256:714ac14496c3e68c99c29b00845f7a2b85f3bb6f1078fd9f72fd20f0570002b2"}, @@ -1957,8 +1953,8 @@ pillow = [ {file = "Pillow-9.4.0.tar.gz", hash = "sha256:a1c2d7780448eb93fbcc3789bf3916aa5720d942e37945f4056680317f1cd23e"}, ] platformdirs = [ - {file = "platformdirs-2.6.2-py3-none-any.whl", hash = "sha256:83c8f6d04389165de7c9b6f0c682439697887bca0aa2f1c87ef1826be3584490"}, - {file = "platformdirs-2.6.2.tar.gz", hash = "sha256:e1fea1fe471b9ff8332e229df3cb7de4f53eeea4998d3b6bfff542115e998bd2"}, + {file = "platformdirs-3.0.0-py3-none-any.whl", hash = "sha256:b1d5eb14f221506f50d6604a561f4c5786d9e80355219694a1b244bcd96f4567"}, + {file = "platformdirs-3.0.0.tar.gz", hash = "sha256:8a1228abb1ef82d788f74139988b137e78692984ec7b08eaa6c65f1723af28f9"}, ] pluggy = [ {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, @@ -2006,8 +2002,8 @@ pyinstaller-hooks-contrib = [ {file = "pyinstaller_hooks_contrib-2022.15-py2.py3-none-any.whl", hash = "sha256:55c1def8066d0279d06cd67eea30c12ffcdb961a5edeeaf361adac0164baef30"}, ] pylint = [ - {file = "pylint-2.16.0-py3-none-any.whl", hash = "sha256:55e5cf00601c4cfe2e9404355c743a14e63be85df7409da7e482ebde5f9f14a1"}, - {file = "pylint-2.16.0.tar.gz", hash = "sha256:43ee36c9b690507ef9429ce1802bdc4dcde49454c3d665e39c23791567019c0a"}, + {file = "pylint-2.16.1-py3-none-any.whl", hash = "sha256:bad9d7c36037f6043a1e848a43004dfd5ea5ceb05815d713ba56ca4503a9fe37"}, + {file = "pylint-2.16.1.tar.gz", hash = "sha256:ffe7fa536bb38ba35006a7c8a6d2efbfdd3d95bbf21199cad31f76b1c50aaf30"}, ] pyquery = [ {file = "pyquery-2.0.0-py3-none-any.whl", hash = "sha256:8dfc9b4b7c5f877d619bbae74b1898d5743f6ca248cfd5d72b504dd614da312f"}, @@ -2173,16 +2169,16 @@ types-pytz = [ {file = "types_pytz-2022.7.1.0-py3-none-any.whl", hash = "sha256:10ec7d009a02340f1cecd654ac03f0c29b6088a03b63d164401fc52df45936b2"}, ] types-pyyaml = [ - {file = "types-PyYAML-6.0.12.3.tar.gz", hash = "sha256:17ce17b3ead8f06e416a3b1d5b8ddc6cb82a422bb200254dd8b469434b045ffc"}, - {file = "types_PyYAML-6.0.12.3-py3-none-any.whl", hash = "sha256:879700e9f215afb20ab5f849590418ab500989f83a57e635689e1d50ccc63f0c"}, + {file = "types-PyYAML-6.0.12.4.tar.gz", hash = "sha256:ade6e328a5a3df816c47c912c2e1e946ae2bace90744aa73111ee6834b03a314"}, + {file = "types_PyYAML-6.0.12.4-py3-none-any.whl", hash = "sha256:de3bacfc4e0772d9b1baf007c37354f3c34c8952e90307d5155b6de0fc183a67"}, ] types-requests = [ - {file = "types-requests-2.28.11.8.tar.gz", hash = "sha256:e67424525f84adfbeab7268a159d3c633862dafae15c5b19547ce1b55954f0a3"}, - {file = "types_requests-2.28.11.8-py3-none-any.whl", hash = "sha256:61960554baca0008ae7e2db2bd3b322ca9a144d3e80ce270f5fb640817e40994"}, + {file = "types-requests-2.28.11.11.tar.gz", hash = "sha256:19622ace35a5da1838ee9cad0df4a50c7e3a420f8a37e8357ce870fed492fa81"}, + {file = "types_requests-2.28.11.11-py3-none-any.whl", hash = "sha256:b4adf81c6bcd2f9fa0f6ab8669e96fad7f04429d6e22c486b2b3382d729ca364"}, ] types-urllib3 = [ - {file = "types-urllib3-1.26.25.4.tar.gz", hash = "sha256:eec5556428eec862b1ac578fb69aab3877995a99ffec9e5a12cf7fbd0cc9daee"}, - {file = "types_urllib3-1.26.25.4-py3-none-any.whl", hash = "sha256:ed6b9e8a8be488796f72306889a06a3fc3cb1aa99af02ab8afb50144d7317e49"}, + {file = "types-urllib3-1.26.25.5.tar.gz", hash = "sha256:5630e578246d170d91ebe3901788cd28d53c4e044dc2e2488e3b0d55fb6895d8"}, + {file = "types_urllib3-1.26.25.5-py3-none-any.whl", hash = "sha256:e8f25c8bb85cde658c72ee931e56e7abd28803c26032441eea9ff4a4df2b0c31"}, ] typing-extensions = [ {file = "typing_extensions-4.4.0-py3-none-any.whl", hash = "sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e"}, diff --git a/scripts/mask_user_info_for_rating_performance.py b/scripts/mask_user_info_for_rating_performance.py index a6767d9c..69498b25 100644 --- a/scripts/mask_user_info_for_rating_performance.py +++ b/scripts/mask_user_info_for_rating_performance.py @@ -27,7 +27,6 @@ def execute_mask_user_info_command(csv_path: Path, output_csv: Path, remainder_o def mask_user_info_for_dir(root_dir: Path, output_dir: Path, remainder_options: Optional[list[str]]) -> None: - for sub_dirname in [ "annotation_productivity", "inspection_acceptance_productivity", diff --git a/tests/annotation/test_annotation_query.py b/tests/annotation/test_annotation_query.py index 54ae5a30..3a9d1cd4 100644 --- a/tests/annotation/test_annotation_query.py +++ b/tests/annotation/test_annotation_query.py @@ -5,7 +5,6 @@ class TestAnnotationQueryForCLI: - ANNOTATION_SPECS = { "labels": [ { diff --git a/tests/annotation_specs/test_get_annotation_specs_with_attribute_id_replaced.py b/tests/annotation_specs/test_get_annotation_specs_with_attribute_id_replaced.py index a31633f5..c44d35ab 100644 --- a/tests/annotation_specs/test_get_annotation_specs_with_attribute_id_replaced.py +++ b/tests/annotation_specs/test_get_annotation_specs_with_attribute_id_replaced.py @@ -56,7 +56,6 @@ class TestReplacingAttributeId: ] def test_replace_attribute_id_of_restrictions(self): - restriction_list = copy.deepcopy(self.restriction_list) ReplacingAttributeId().replace_attribute_id_of_restrictions("attr1", "new_attr1", restriction_list) restriction = restriction_list[0] @@ -65,7 +64,6 @@ def test_replace_attribute_id_of_restrictions(self): assert restriction["condition"]["premise"]["additional_data_definition_id"] == "attr2" # type: ignore def test_replace_attribute_id_of_labels(self): - label_list = copy.deepcopy(self.label_list) ReplacingAttributeId().replace_attribute_id_of_labels("attr1", "new_attr1", label_list) label = label_list[0] diff --git a/tests/annotation_specs/test_get_annotation_specs_with_label_id_replaced.py b/tests/annotation_specs/test_get_annotation_specs_with_label_id_replaced.py index 51fe9ced..aabda712 100644 --- a/tests/annotation_specs/test_get_annotation_specs_with_label_id_replaced.py +++ b/tests/annotation_specs/test_get_annotation_specs_with_label_id_replaced.py @@ -28,7 +28,6 @@ class TestReplacingLabelId: ] def test_replace_label_id_of_restrictions(self): - restriction_list = copy.deepcopy(self.restriction_list) ReplacingLabelId().replace_label_id_of_restrictions("id1", "new_label1", restriction_list) labels: list[str] = restriction_list[0]["condition"]["condition"]["labels"] # type: ignore diff --git a/tests/annotation_specs/test_list_attribute_restriction.py b/tests/annotation_specs/test_list_attribute_restriction.py index c7e79e27..efaf249a 100644 --- a/tests/annotation_specs/test_list_attribute_restriction.py +++ b/tests/annotation_specs/test_list_attribute_restriction.py @@ -66,7 +66,6 @@ def test_get_restriction_text__haslabel(self): ) def test_get_restriction_text__imply(self): - attribute_id = "54fa5e97-6f88-49a4-aeb0-a91a15d11528" condition = { "premise": { @@ -84,7 +83,6 @@ def test_get_restriction_text__imply(self): ) def test_get_restriction_text__equals_not_exist_attribute(self): - attribute_id = "not-exist" condition = {"value": "foo", "_type": "Equals"} diff --git a/tests/statistics/test_list_annotation_count.py b/tests/statistics/test_list_annotation_count.py index ee6ed3f6..0aa0a59e 100644 --- a/tests/statistics/test_list_annotation_count.py +++ b/tests/statistics/test_list_annotation_count.py @@ -89,7 +89,6 @@ def test_print_csv_by_input_data(self): ) def test_print_labels_count_csv(self): - counter_list = ListAnnotationCounterByTask().get_annotation_counter_list(data_dir / "simple-annotations.zip") LabelCountCsv().print_csv_by_task( diff --git a/tests/statistics/visualization/dataframe/test_cumulative_productivity.py b/tests/statistics/visualization/dataframe/test_cumulative_productivity.py index 84d9bf1d..b7b94eee 100644 --- a/tests/statistics/visualization/dataframe/test_cumulative_productivity.py +++ b/tests/statistics/visualization/dataframe/test_cumulative_productivity.py @@ -57,7 +57,6 @@ class TestAcceptorCumulativeProductivity: @classmethod def setup_class(cls): - df_task = pandas.read_csv(str(data_dir / "task.csv")) cls.obj = AcceptorCumulativeProductivity(df_task) diff --git a/tests/statistics/visualization/dataframe/test_productivity_per_date.py b/tests/statistics/visualization/dataframe/test_productivity_per_date.py index 4976d107..4e5ec5c8 100644 --- a/tests/statistics/visualization/dataframe/test_productivity_per_date.py +++ b/tests/statistics/visualization/dataframe/test_productivity_per_date.py @@ -38,7 +38,6 @@ class TestInspectorProductivityPerDate: @classmethod def setup_class(cls): - df_task = pandas.read_csv(str(data_dir / "task.csv")) cls.obj = InspectorProductivityPerDate.from_df_task(df_task) @@ -58,7 +57,6 @@ class TestAcceptorProductivityPerDate: @classmethod def setup_class(cls): - df_task = pandas.read_csv(str(data_dir / "task.csv")) cls.obj = AcceptorProductivityPerDate.from_df_task(df_task) diff --git a/tests/statistics/visualization/dataframe/test_whole_productivity_per_date.py b/tests/statistics/visualization/dataframe/test_whole_productivity_per_date.py index 6def83af..84e61b36 100644 --- a/tests/statistics/visualization/dataframe/test_whole_productivity_per_date.py +++ b/tests/statistics/visualization/dataframe/test_whole_productivity_per_date.py @@ -17,7 +17,6 @@ class TestWholeProductivityPerCompletedDate: @classmethod def setup_class(cls): - df_task = pandas.read_csv(str(data_dir / "task.csv")) df_worktime = pandas.read_csv(str(data_dir / "ユーザ_日付list-作業時間.csv")) diff --git a/tests/statistics/visualization/dataframe/test_worktime_per_date.py b/tests/statistics/visualization/dataframe/test_worktime_per_date.py index 162b698d..4badf64b 100644 --- a/tests/statistics/visualization/dataframe/test_worktime_per_date.py +++ b/tests/statistics/visualization/dataframe/test_worktime_per_date.py @@ -54,7 +54,6 @@ def test_empty(self): @pytest.mark.access_webapi class TestWorktimePerDate_webapi: - service: annofabapi.Resource @classmethod diff --git a/tests/test_task_history.py b/tests/test_task_history.py index 41c0d3c0..c3515f9c 100644 --- a/tests/test_task_history.py +++ b/tests/test_task_history.py @@ -38,7 +38,6 @@ def test_download(self): ) def test_list_task_history(self): - main( [ "task_history",