You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't exclude specified file from auto formatting when using autopep8 #17188
Originally posted by Iftakharpy August 28, 2021
Can anyone help me to ignore the "settings.py" file in a Django project to be formatted on save? I have tried for 2 hours but couldn't get it to work. I am using Windows 10.
Iftakhar Husan (@Iftakharpy) no idea. We have to reproduce it and then figure out what's going on. It's quite possible that it's an issue with how we execute autopep8, which would mean a complete rewrite of our formatting code would be required.
Activity
Iftakharpy commentedon Sep 2, 2021
Can I get an idea of when this bug will be resolved?
brettcannon commentedon Sep 2, 2021
Iftakhar Husan (@Iftakharpy) no idea. We have to reproduce it and then figure out what's going on. It's quite possible that it's an issue with how we execute autopep8, which would mean a complete rewrite of our formatting code would be required.
kimadeline commentedon Nov 3, 2021
Hi Iftakhar Husan (@Iftakharpy),
This is not a bug with the extension, since running autopep8 in the terminal with the args combinations that you tried also fails.
You can use the following autopep8 args array with the extension to exclude your
settings.pyfile: