Merge ~cjwatson/launchpad:isort-config into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: a4479f42017c3215a6d7ce27e5aaa53f0c4ffa05
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:isort-config
Merge into: launchpad:master
Diff against target: 23 lines (+15/-0)
1 file modified
setup.cfg (+15/-0)
Reviewer Review Type Date Requested Status
Ioana Lasc Approve
Review via email: mp+406589@code.launchpad.net

Commit message

Add isort configuration

Description of the change

This isn't yet enabled in pre-commit, but this gives us a common base to work from to clean up lint.

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/setup.cfg b/setup.cfg
2index c856fa8..149b9e9 100644
3--- a/setup.cfg
4+++ b/setup.cfg
5@@ -58,3 +58,18 @@ ignore =
6 # operators, at least for now.
7 W503,
8 W504
9+
10+[isort]
11+combine_as_imports = true
12+force_grid_wrap = 2
13+force_sort_within_sections = true
14+include_trailing_comma = true
15+# database/* have some implicit relative imports.
16+known_first_party = canonical,lp,launchpad_loggerhead,devscripts,fti,replication,preflight,security,upgrade,dbcontroller
17+known_pythonpath = _pythonpath
18+line_length = 78
19+lines_after_imports = 2
20+multi_line_output = 8
21+order_by_type = false
22+sections = FUTURE,PYTHONPATH,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
23+skip_gitignore = true

Subscribers

People subscribed via source and target branches

to status/vote changes: