From d43bb46daea82bce84c5e83a6323eeb68fdf6cf6 Mon Sep 17 00:00:00 2001 From: Phillip Shiu Date: Thu, 9 Jun 2022 09:40:09 -0400 Subject: [PATCH] fix: remove deprecated switch from isort The --recursive or --rc flag in isort is now run by default as of isort 5.0 and generates the following warning if still present: lib/python3.8/site-packages/isort/main.py:: UserWarning: W0501: The following deprecated CLI flags were used and ignored: -rc! Squash warning. --- cookiecutter-django-ida/{{cookiecutter.repo_name}}/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookiecutter-django-ida/{{cookiecutter.repo_name}}/Makefile b/cookiecutter-django-ida/{{cookiecutter.repo_name}}/Makefile index 9d55f90e..28763ecd 100644 --- a/cookiecutter-django-ida/{{cookiecutter.repo_name}}/Makefile +++ b/cookiecutter-django-ida/{{cookiecutter.repo_name}}/Makefile @@ -68,7 +68,7 @@ coverage: clean $(BROWSER) htmlcov/index.html isort_check: ## check that isort has been run - isort --check-only -rc {{cookiecutter.project_name}}/ + isort --check-only {{cookiecutter.project_name}}/ isort: ## run isort to sort imports in all Python files isort --recursive --atomic {{cookiecutter.project_name}}/