Removes unused imports and adds setuf.cfg
with flake8 setup.
This commit is contained in:
parent
c692a01f72
commit
84e5d68a6b
@ -1,4 +1,4 @@
|
||||
from datetime import date, timedelta
|
||||
from datetime import timedelta
|
||||
from re import compile as c
|
||||
|
||||
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user