I was teaming up, but when I made it, some people used tabs and some people indented it with spaces (even the number of tabs I wanted to...) I want to fix all of these according to pep8.
I want to fix the indentation while maintaining the original code, but please let me know if there is a related site or Python module.
python pep8
Write autopep8
$ pip install --upgrade autopep8
$ autopep8 --in-place --aggressive --aggressive <filename>
From what I've run on the terminal,
$ cat mine.py
if True:
print("2 spaces apart!")
$ $ autopep8 --in-place --aggressive --aggressive mine.py
$ $ cat mine.py
if True:
print("2 spaces apart!")
$
© 2024 OneMinuteCode. All rights reserved.