arachnys / cabot

Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
MIT License
5.59k stars 594 forks source link

Add isort configuration to sort imports #561

Closed JeanFred closed 6 years ago

JeanFred commented 7 years ago

isort is a Python utility to to sort imports alphabetically, and automatically separated into sections.

This config matches the Django coding style: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#imports

Put imports in these groups: future, standard library, third-party libraries,
other Django components, local Django component, try/excepts.
JeanFred commented 7 years ago

We need to decide on a multi-line-output mode...

codecov[bot] commented 6 years ago

Codecov Report

Merging #561 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #561   +/-   ##
=======================================
  Coverage   80.53%   80.53%           
=======================================
  Files          43       43           
  Lines        2846     2846           
  Branches      173      173           
=======================================
  Hits         2292     2292           
  Misses        495      495           
  Partials       59       59

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5040c55...7781f5c. Read the comment docs.