From 89e1e2cc07e7bf524f5af2c8f1cd3757eced3dfa Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Sun, 16 May 2021 21:58:44 -0700 Subject: [PATCH] Add initial appnexus profile --- isort/profiles.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/isort/profiles.py b/isort/profiles.py index 00ebe418e..21d064630 100644 --- a/isort/profiles.py +++ b/isort/profiles.py @@ -61,6 +61,16 @@ "use_parentheses": True, "line_length": 80, } +appnexus = { + **black, + "force_sort_within_sections": True, + "order_by_type": False, + "case_sensitive": False, + "reverse_relative": True, + "sort_relative_in_force_sorted_sections": True, + "sections": ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "APPLICATION", "LOCALFOLDER"], + "no_lines_before": "LOCALFOLDER", +} profiles: Dict[str, Dict[str, Any]] = { "black": black, @@ -72,4 +82,5 @@ "attrs": attrs, "hug": hug, "wemake": wemake, + "appnexus": appnexus, }