Removes unused imports and adds setuf.cfg

with flake8 setup.
This commit is contained in:
Luís Murta 2021-04-24 01:03:52 +01:00
parent c692a01f72
commit 84e5d68a6b
Signed by: satprog
GPG Key ID: DDF2EFC6179009DC
6 changed files with 8 additions and 20 deletions

View File

@ -1,4 +1,4 @@
from datetime import date, timedelta
from datetime import timedelta
from re import compile as c

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[flake8]
max-line-length = 120