Skip to content

Commit

Permalink
fix: remove deprecated switch from isort
Browse files Browse the repository at this point in the history
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:<line>: UserWarning: W0501:
    The following deprecated CLI flags were used and ignored: -rc!

Squash warning.
  • Loading branch information
pshiu committed Jun 9, 2022
1 parent ef0f03d commit d43bb46
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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}}/
Expand Down

0 comments on commit d43bb46

Please sign in to comment.