Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Specify path argument to isort to fix build error
Browse files Browse the repository at this point in the history
Since isort 5.2.2, specifying command line options to isort without
specifying a path argument leads to the following error:

    Error: arguments passed in without any paths or content.

See PyCQA/isort@39adcee for more details.

This leads to a linting error while building with Python 3.6 or later.
Fix this issue by specifying the current directory as the path
argument to isort.

Nothing to do: no files or paths have have been passed in!
  • Loading branch information
susam committed May 15, 2021
1 parent 76fd7c3 commit 2977199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ coverage: FORCE
# Note that this independently invoked isort exits with exit code 0
# regardless of whether it finds problems with import statements or not.
lint:
. ./venv && isort --quiet --diff --skip-glob "*/build/*"
. ./venv && isort --quiet --diff --skip-glob "*/build/*" .
. ./venv && pylama

# The -M option for sphinx-apidoc puts the package documentation before
Expand Down

0 comments on commit 2977199

Please sign in to comment.