Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isort/autopep8 fail during setup #13

Open
brian-maher opened this issue Mar 28, 2019 · 0 comments
Open

isort/autopep8 fail during setup #13

brian-maher opened this issue Mar 28, 2019 · 0 comments
Labels

Comments

@brian-maher
Copy link
Contributor

The following code

echo "- Autopep8"
find . -type f -name '*.py' -not -path './.*' -exec autopep8 --aggressive --in-place {} \;
echo "- Sorting imports in Python files"
find . -type f -name '*.py' -not -path './.*' -exec isort --atomic {} \;

Fails to run, autopep8/isort are not found despite them being installed. This is most likely due to a path issue.

They are installed further up the script:

    if ! [[ $(which autopep8) ]] ; then
        # Install Autopep8
        echo "- Installing Autopep8"
        pip3 install --user autopep8
    fi

    if ! [[ $(which isort) ]] ; then
        # Install Isort
        echo "- Installing Isort"
        pip3 install --user isort
    fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant