From 112c41c7ca043577b0865e6ce9fcd925d2012ca0 Mon Sep 17 00:00:00 2001 From: Catherine Oborski Date: Sun, 8 Sep 2024 13:42:30 -0500 Subject: [PATCH] updated the readme; ran isort --- .github/README.md | 1 + source/app.py | 2 +- source/identify_file_type.py | 7 ++++--- source/log.py | 3 ++- source/main.py | 4 ++-- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/README.md b/.github/README.md index d4fea51..8c36b9d 100644 --- a/.github/README.md +++ b/.github/README.md @@ -17,6 +17,7 @@ This project is just getting started and only has a couple of features implement - [ ] Generate documentation - [ ] Write getting started guide - [ ] Currently, zipssion is using [python-magic](https://github.com/ahupp/python-magic) (libmagic) for file identification but I want to add a flag that allows the user to use [Magika](https://github.com/google/magika) instead. (or maybe in addition to?) +- [ ] Write tests - [ ] Continue writing TODOs... ## View source diff --git a/source/app.py b/source/app.py index b125389..be1b783 100644 --- a/source/app.py +++ b/source/app.py @@ -1,7 +1,7 @@ # to delete -from typer import Typer import identify_file_type +from typer import Typer app = Typer() VERSION = "0.1.0-alpha" diff --git a/source/identify_file_type.py b/source/identify_file_type.py index 5910b46..a7c1356 100644 --- a/source/identify_file_type.py +++ b/source/identify_file_type.py @@ -1,12 +1,13 @@ -from typer import Typer, Argument -from rich import print, console -from pprint import pprint import argparse import pathlib import shutil import tempfile import zipfile +from pprint import pprint + import magic +from rich import console, print +from typer import Argument, Typer app = Typer() diff --git a/source/log.py b/source/log.py index 1abf709..6821292 100644 --- a/source/log.py +++ b/source/log.py @@ -1,5 +1,6 @@ -import rich_cli import logging + +import rich_cli from rich.logging import RichHandler diff --git a/source/main.py b/source/main.py index e71f33c..ba031c1 100644 --- a/source/main.py +++ b/source/main.py @@ -1,6 +1,6 @@ -from typer import Typer -from log import create_rich_logger import identify_file_type +from log import create_rich_logger +from typer import Typer app = Typer() VERSION = "0.1.0-alpha"