Run auto-correct on app/ and tests/

This commit is contained in:
Ben Thorner
2021-03-10 13:55:06 +00:00
parent 321b4913ed
commit a91fde2fda
248 changed files with 2026 additions and 1716 deletions

View File

@@ -1,6 +1,5 @@
from datetime import datetime
create_or_update_free_sms_fragment_limit_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST annual billing schema",

View File

@@ -6,18 +6,17 @@ from app.billing.billing_schemas import (
serialize_ft_billing_yearly_totals,
)
from app.dao.annual_billing_dao import (
dao_get_free_sms_fragment_limit_for_year,
dao_get_all_free_sms_fragment_limit,
dao_create_or_update_annual_billing_for_year,
dao_update_annual_billing_for_future_years
dao_get_all_free_sms_fragment_limit,
dao_get_free_sms_fragment_limit_for_year,
dao_update_annual_billing_for_future_years,
)
from app.dao.date_util import get_current_financial_year_start_year
from app.dao.fact_billing_dao import (
fetch_monthly_billing_for_year, fetch_billing_totals_for_year,
fetch_billing_totals_for_year,
fetch_monthly_billing_for_year,
)
from app.errors import InvalidRequest
from app.errors import register_errors
from app.errors import InvalidRequest, register_errors
from app.schema_validation import validate
billing_blueprint = Blueprint(