From b5210a886dce72adb415185d9b52ccb787fd6818 Mon Sep 17 00:00:00 2001 From: rmorshea Date: Thu, 13 Jan 2022 23:21:16 -0800 Subject: [PATCH] disallow relative imports of parent modules --- requirements/check-style.txt | 5 +++-- setup.cfg | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/requirements/check-style.txt b/requirements/check-style.txt index dc10ef89a..df22cfea8 100644 --- a/requirements/check-style.txt +++ b/requirements/check-style.txt @@ -1,6 +1,7 @@ black flake8 -flake8-print -pep8-naming flake8-idom-hooks >=0.5.0 +flake8-print +flake8-tidy-imports isort >=5.7.0 +pep8-naming diff --git a/setup.cfg b/setup.cfg index b1c314036..4359702ff 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,6 +16,8 @@ exclude = **/node_modules/* .eggs/* .tox/* +# -- flake8-tidy-imports -- +ban-relative-imports = parents [tool:pytest] testpaths = tests