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

How to list the active fixes? #667

Open
luzfcb opened this issue Dec 29, 2022 · 1 comment
Open

How to list the active fixes? #667

luzfcb opened this issue Dec 29, 2022 · 1 comment
Assignees

Comments

@luzfcb
Copy link

luzfcb commented Dec 29, 2022

Hello, first, thanks for the hard work on this project.

I'm trying to figure out what exactly are the fixes that autopep8 applies by default, and what are the fixes that autopep8 will use when for example, a project has multiple configuration files with sections that define select and ignore.

for example, running autopep8 --list-fixes shows that there are options W291, W292, W293, W391

now let's assume I have two config files:

.flake8:

[flake8]
select = W29,W39

setup.cfg

[pycodestyle]
ignore = W292

let's assume that there is an optional argument called --active-only

autopep8 --list-fixes --active-only

The output would be something like:

W291 - Remove trailing whitespace.
W293 - Remove trailing whitespace.
W391 - Remove trailing blank lines.

if I also include --aggressive and --experimental like:

autopep8 --list-fixes --active-only -aaa --experimental

The output will show W291, W293, W391, and the other fixes that autopep8 applies when aggressive and experimental are used.

In other words, is there any way to get the list of active fixes after autopep8 loads all configuration files?

@luzfcb
Copy link
Author

luzfcb commented Feb 2, 2023

@hhatto Do you have any thoughts?

@hhatto hhatto self-assigned this Feb 5, 2023
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