diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index b8ec977..0000000 --- a/.isort.cfg +++ /dev/null @@ -1,23 +0,0 @@ -# Configuring isort -# https://github.com/timothycrosley/isort/wiki/isort-Settings - -[settings] -atomic=true -line_length=120 -case_sensitive=false - -skip_glob=*/migrations/*,*/volumes/* - -# https://github.com/timothycrosley/isort#multi-line-output-modes -# 3 - Vertical Hanging Indent -multi_line_output=3 -include_trailing_comma=true - -known_first_party=inventory,inventory_project,inventory_tests - -no_lines_before=LOCALFOLDER - -default_section=THIRDPARTY -sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER - -lines_after_imports=2 diff --git a/pyproject.toml b/pyproject.toml index 62157b3..1027a84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,6 +95,21 @@ max_line_length = 120 exclude = "*/migrations/*" +[tool.isort] +# https://pycqa.github.io/isort/docs/configuration/config_files/#pyprojecttoml-preferred-format +atomic=true +line_length=120 +case_sensitive=false +skip_glob=["*/migrations/*","*/volumes/*"] +multi_line_output=3 +include_trailing_comma=true +known_first_party=["inventory","inventory_project","inventory_tests"] +no_lines_before="LOCALFOLDER" +default_section="THIRDPARTY" +sections=["FUTURE","STDLIB","THIRDPARTY","FIRSTPARTY","LOCALFOLDER"] +lines_after_imports=2 + + [tool.pytest.ini_options] # https://docs.pytest.org/en/latest/customize.html#pyproject-toml minversion = "6.0"