Skip to content

Harmonise Imports #194

@stufisher

Description

@stufisher

At the moment we have a mixture of local and absolute imports within the project

from pyispyb.app.extensions.auth.AbstractAuthentication import AbstractAuthentication
from .extensions.auth.bearer import JWTBearer

I think i'd prefer relative imports if the paths arent crazy (we'll have to check the rest of the source)

And also whats imported in what order, i would usually import as follows

import pythonstandards
import os
import sys

import dependency1
import fastapi

import local
from .module import a

This makes it clear whats a standard module, whats a dependency, and whats relative to the package. I'm open to discussion on this.

We should probably also apply isort to sort imports alphabetically

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions