Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtatsuki05 committed May 19, 2024
1 parent 2972d6e commit 074af85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/unlock_pdf_password.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import logging
from typing import Union, Optional
from pathlib import Path
from typing import Optional, Union

import fire

from unlock_pdf_password.unlock_pdf_password import unlock_pdf_password, unlock_pdf
from unlock_pdf_password.unlock_pdf_password import unlock_pdf, unlock_pdf_password

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


def unlock_pdf_password_wrapper(
input_pdf_path: Union[str, Path],
output_pdf_path: Union[str, Path],
Expand Down Expand Up @@ -42,5 +43,6 @@ def unlock_pdf_password_wrapper(
logger.info(f'PDF unlocked successfully! Password: {password}')
logger.error('Password not found')


if __name__ == '__main__':
fire.Fire(unlock_pdf_password)

0 comments on commit 074af85

Please sign in to comment.