diff --git a/changelogs/fragments/20230702-isort.yml b/changelogs/fragments/20230702-isort.yml new file mode 100644 index 0000000000..5ceaa201c0 --- /dev/null +++ b/changelogs/fragments/20230702-isort.yml @@ -0,0 +1,2 @@ +trivial: +- added isort configs to pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index 34fb52ea61..b78e8bd0e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,3 +16,20 @@ src = [ "tests/unit", "tests/integration", ] + +[tool.isort] +profile = "black" +force_single_line = true +line_length = 120 + +src_paths = [ + "plugins", + "tests/unit", + "tests/integration", +] + +sections=["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "ANSIBLE_CORE", "ANSIBLE_AMAZON_AWS", "ANSIBLE_COMMUNITY_AWS", "LOCALFOLDER"] +known_third_party=["botocore", "boto3"] +known_ansible_core=["ansible"] +known_ansible_amazon_aws=["ansible_collections.amazon.aws"] +known_ansible_community_aws=["ansible_collections.community.aws"]