Closed subpath closed 2 years ago
Thanks @subpath for the report - this feels like a bug, I'll have a look
@subpath having looked into this furter, I don't think there's a bug
I don't think there's a way to turn off reording imports in autopep8 (as far as I can tell, at least), so I'd suggest using a cell tag to skip the first cell
Do let me know if that doesn't work for you and I'll reopen - thanks again for the report though, much appreciated
autopep8 changing order of import and
!pip install
command so notebook became corrupted because I want my!pip install
command to be the first cell in the notebook.Is there some parameter that I can use with autopep8 to avoid it?
Cheers : )
Steps to recreate
before:
after:
pre-commit-config.yaml