Skip to content

Port futurize's fix selection logic to pasteurize #389

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

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

jparise
Copy link
Contributor

@jparise jparise commented Oct 16, 2018

Previously, pasteurize ignored the --fix option and always used the
fill set of available fixes. This change ports over futurize's fix
selection logic (including set validation), making --fix work as
intended.

Previously, pasteurize ignored the `--fix` option and always used the
fill set of available fixes. This change ports over futurize's fix
selection logic (including set validation), making `--fix` work as
intended.
@jparise
Copy link
Contributor Author

jparise commented Oct 16, 2018

This module doesn't have unit tests, but you can verify that this works as expected:

$ pasteurize -f libpasteurize.fixes.fix_newstyle -x libpasteurize.fixes.fix_newstyle libs/
Conflicting usage: the following fixers have been simultaneously requested and disallowed:
  libpasteurize.fixes.fix_newstyle

@jmadler jmadler merged commit 6e4ad71 into PythonCharmers:master Oct 19, 2018
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

Successfully merging this pull request may close these issues.

2 participants