Skip to content

Commit 11f1367

Browse files
authored
Merge pull request #284 from dcnadler/isort_section_options
Add isort config options for custom sections
2 parents a8a063e + 417b7dd commit 11f1367

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

schema/settings.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
"wrap_length": {
6767
"type": "number"
6868
},
69+
"sections": {
70+
"type": "array",
71+
"items": {"type": "string"}
72+
},
6973
"known_future_library": {
7074
"type": "array",
7175
"items": {"type": "string"}
@@ -152,6 +156,12 @@
152156
"type": "boolean"
153157
}
154158
},
159+
"patternProperties": {
160+
"^known_[a-z_]+": {
161+
"type": "array",
162+
"items": {"type": "string"}
163+
}
164+
},
155165
"additionalProperties": false,
156166
"type": "object"
157167
},
@@ -344,6 +354,7 @@
344354
"include_trailing_comma": true,
345355
"force_grid_wrap": 0,
346356
"use_parentheses": true,
357+
"ensure_newline_before_comments": true,
347358
"line_length": 88
348359
}
349360
},
@@ -376,14 +387,14 @@
376387
"$ref": "#/definitions/cacheFormatters",
377388
"default": false
378389
},
379-
"astyle": {
380-
"title": "AStyle Config",
390+
"astyle": {
391+
"title": "AStyle Config",
381392
"description": "Command line options to be passed to astyle.",
382393
"$ref": "#/definitions/astyle",
383394
"default": {
384-
"args": []
385-
}
386-
},
395+
"args": []
396+
}
397+
},
387398
"suppressFormatterErrors": {
388399
"title": "Suppress formatter errors",
389400
"description": "Whether to suppress all errors reported by formatter while formatting. Useful when you have format on save mode on.",

0 commit comments

Comments
 (0)