Skip to content
Snippets Groups Projects
Commit 1c2a05a8 authored by Fynn Becker's avatar Fynn Becker :crab:
Browse files

Add setup.cfg and reorder imports

parent 5bbf3770
Branches
Tags
No related merge requests found
import logging import logging
from . import app_settings
from requests import HTTPError from requests import HTTPError
from . import app_settings
logger = logging.getLogger("postgrestutils") logger = logging.getLogger("postgrestutils")
default_app_config = "postgrestutils.apps.PostgrestUtilsConfig" default_app_config = "postgrestutils.apps.PostgrestUtilsConfig"
from django.apps import AppConfig from django.apps import AppConfig
from django.contrib.auth.signals import user_logged_in from django.contrib.auth.signals import user_logged_in
from postgrestutils.helpers import autofetch from postgrestutils.helpers import autofetch
from . import app_settings from . import app_settings
......
from . import app_settings
from django.conf import settings from django.conf import settings
from .signals import user_account_fetched
from postgrestutils.client import pgrest_client from postgrestutils.client import pgrest_client
from . import app_settings
from .signals import user_account_fetched
def autofetch(sender, **kwargs): def autofetch(sender, **kwargs):
"""Fetch user account on login based on the AUTOFETCH configuration""" """Fetch user account on login based on the AUTOFETCH configuration"""
payload = { payload = {
'select': app_settings.AUTOFETCH 'select': app_settings.AUTOFETCH
} }
......
[flake8]
max-line-length = 119
exclude = **/settings/*
[isort]
combine_as_import = true
default_section = THIRDPARTY
include_trailing_comma = true
known_first_party = postgrestutils
known_django = django
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
line_length = 79
multi_line_output = 5
not_skip = __init__.py
import os import os
from setuptools import setup, find_packages
from setuptools import find_packages, setup
README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() README = open(os.path.join(os.path.dirname(__file__), "README.md")).read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment