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

-j0 incompatible with --exit-code #543

Closed
pitrou opened this issue May 18, 2020 · 1 comment
Closed

-j0 incompatible with --exit-code #543

pitrou opened this issue May 18, 2020 · 1 comment
Assignees
Milestone

Comments

@pitrou
Copy link

pitrou commented May 18, 2020

If I pass --exit-code together with -j0 (or e.g. -j2), it seems the exit code is always 2.

  • without -j0
$ autopep8  --global-config /home/antoine/arrow/dev/python/setup.cfg --ignore-local-config --diff --exit-code /home/antoine/arrow/dev/dev/archery/archery/__init__.py
$ echo $?
0
  • same with -j0:
$ autopep8 -j0 --global-config /home/antoine/arrow/dev/python/setup.cfg --ignore-local-config --diff --exit-code /home/antoine/arrow/dev/dev/archery/archery/__init__.py
$ echo $?
2
@hhatto hhatto added this to the 1.5.3 milestone May 19, 2020
@hhatto hhatto self-assigned this May 19, 2020
@hhatto
Copy link
Owner

hhatto commented May 22, 2020

fix in latest master.

Could you try once again with master branch:

$ pip install --upgrade git+https://github.com/hhatto/autopep8

We plan to release it in version 1.5.3.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants