Skip to content

Commit

Permalink
fix lint?
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee committed Sep 17, 2024
1 parent e9dccc3 commit 7a2471e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mindee/parsing/common/summary_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def format_for_display(
"""Truncates line-items to the max width of their corresponding column."""
if not out_string or len(out_string) == 0:
return ""
out_string = out_string.replace('\n', '\\n')
out_string = out_string.replace("\n", "\\n")
if max_col_size is None:
return out_string
return (
Expand Down
4 changes: 3 additions & 1 deletion mindee/product/fr/payslip/payslip_v2_employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def _printable_values(self) -> Dict[str, str]:
out_dict["last_name"] = format_for_display(self.last_name)
out_dict["phone_number"] = format_for_display(self.phone_number)
out_dict["registration_number"] = format_for_display(self.registration_number)
out_dict["social_security_number"] = format_for_display(self.social_security_number)
out_dict["social_security_number"] = format_for_display(
self.social_security_number
)
return out_dict

def to_field_list(self) -> str:
Expand Down
4 changes: 3 additions & 1 deletion mindee/product/fr/payslip/payslip_v2_employment.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def _printable_values(self) -> Dict[str, str]:
out_dict: Dict[str, str] = {}
out_dict["category"] = format_for_display(self.category)
out_dict["coefficient"] = float_to_string(self.coefficient)
out_dict["collective_agreement"] = format_for_display(self.collective_agreement)
out_dict["collective_agreement"] = format_for_display(
self.collective_agreement
)
out_dict["job_title"] = format_for_display(self.job_title)
out_dict["position_level"] = format_for_display(self.position_level)
out_dict["start_date"] = format_for_display(self.start_date)
Expand Down
4 changes: 3 additions & 1 deletion mindee/product/us/us_mail/us_mail_v2_recipient_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def _printable_values(self) -> Dict[str, str]:
out_dict["complete"] = format_for_display(self.complete)
out_dict["is_address_change"] = bool_to_string(self.is_address_change)
out_dict["postal_code"] = format_for_display(self.postal_code)
out_dict["private_mailbox_number"] = format_for_display(self.private_mailbox_number)
out_dict["private_mailbox_number"] = format_for_display(
self.private_mailbox_number
)
out_dict["state"] = format_for_display(self.state)
out_dict["street"] = format_for_display(self.street)
return out_dict
Expand Down

0 comments on commit 7a2471e

Please sign in to comment.