diff --git a/pfbudget/categories.py b/pfbudget/categories.py index 2e434c5..6619b40 100644 --- a/pfbudget/categories.py +++ b/pfbudget/categories.py @@ -1,4 +1,4 @@ -from datetime import date, timedelta +from datetime import timedelta from re import compile as c diff --git a/pfbudget/graph.py b/pfbudget/graph.py index 98a71b2..caab394 100644 --- a/pfbudget/graph.py +++ b/pfbudget/graph.py @@ -1,4 +1,3 @@ -from dateutil.rrule import MONTHLY, YEARLY import matplotlib.pyplot as plt from .categories import ( @@ -8,13 +7,7 @@ from .categories import ( get_health_expenses, get_discretionary_expenses, ) -from .transactions import ( - load_transactions, - daterange, - by_category, - by_month, - by_month_and_category, -) +from .transactions import load_transactions, daterange, by_month_and_category def monthly(state, start, end): diff --git a/pfbudget/parsers.py b/pfbudget/parsers.py index 1f4665b..a7b08d7 100644 --- a/pfbudget/parsers.py +++ b/pfbudget/parsers.py @@ -1,5 +1,5 @@ from datetime import datetime -from decimal import Decimal, InvalidOperation +from decimal import Decimal from pathlib import Path from .transactions import Transaction diff --git a/pfbudget/report.py b/pfbudget/report.py index ef6ed2c..bc4f903 100644 --- a/pfbudget/report.py +++ b/pfbudget/report.py @@ -5,14 +5,7 @@ from .categories import ( get_health_expenses, get_discretionary_expenses, ) -from .transactions import ( - load_transactions, - daterange, - by_category, - by_month, - by_month_and_category, - by_year_and_category, -) +from .transactions import load_transactions, by_year_and_category def net(state, start=None, end=None): diff --git a/pfbudget/runnable.py b/pfbudget/runnable.py index df74827..8add129 100644 --- a/pfbudget/runnable.py +++ b/pfbudget/runnable.py @@ -2,7 +2,7 @@ from pathlib import Path import argparse import datetime as dt -from .graph import average, discrete, monthly +from .graph import discrete, monthly from .state import pfstate from .transactions import load_transactions, save_transactions from . import report @@ -63,7 +63,7 @@ def get_argparser(): "start", type=str, nargs=1, help="new vacation start date" ) p_vacation_add.add_argument("end", type=str, nargs=1, help="new vacation end date") - p_vacation_list = subparser_vacation.add_parser("list", help="list help") + _ = subparser_vacation.add_parser("list", help="list help") p_vacation_remove = subparser_vacation.add_parser("remove", help="remove help") p_vacation_remove.add_argument( "pos", help="position of vacation to remove", type=int, nargs=1 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6deafc2 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 120