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 e18a956 commit 7031e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -68,7 +68,7 @@ coverage: clean
$(BROWSER) htmlcov/index.html

isort_check: ## check that isort has been run
isort --check-only --diff -rc commerce_coordinator/
isort --check-only --diff commerce_coordinator/

isort: ## run isort to sort imports in all Python files
isort --recursive --atomic commerce_coordinator/
Expand Down

0 comments on commit 7031e9a

Please sign in to comment.