Fix linting failures

This commit is contained in:
Neil Martinsen-Burrell 2022-10-28 09:22:33 -05:00
parent 53906d339f
commit b425a45ef2
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
4 changed files with 15 additions and 4 deletions

View file

@ -10,7 +10,9 @@ import requests
from cachetools.func import ttl_cache
DOMAIN_FILE_URL = "https://raw.githubusercontent.com/cisagov/dotgov-data/main/current-full.csv"
DOMAIN_FILE_URL = (
"https://raw.githubusercontent.com/cisagov/dotgov-data/main/current-full.csv"
)
# this file doesn't change that often, nor is it that big, so cache the result
@ -52,4 +54,3 @@ def available(request, domain=""):
"""
# a domain is available if it is NOT in the list of current domains
return JsonResponse({"available": not in_domains(domain)})