Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to absolute imports #198

Merged
merged 3 commits into from
May 29, 2021
Merged

Switch to absolute imports #198

merged 3 commits into from
May 29, 2021

Conversation

ferozsalam
Copy link
Collaborator

PEP-8 recommends absolute imports (https://www.python.org/dev/peps/pep-0008/#imports)
and there's no reason for ElastAlert not to be using them. It also
helps makes the import structure clearer.

I have also added a linter to automatically check for this in the future.

Where possible I have also tidied the imports, removing uneccessary
multi-line from statements that import from the same file.

PEP-8 recommends absolute imports (https://www.python.org/dev/peps/pep-0008/#imports)
and there's no reason for ElastAlert not to be using them. It also
helps makes the import structure clearer.

I have also added a linter to automatically check for this in the future.

Where possible I have also tidied the imports, removing uneccessary
multi-line `from` statements that import from the same file.
@jertel jertel merged commit 153a601 into jertel:master May 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants