Today I Learned
Check indentation errors in python 🐍
Posted on 18 Oct 2020
Use tabnanny in python standard library for this.
python -m tabnanny
another way is to check if the files successfully compliles or not
python3 -m py_compile
# or
python3 -c 'import py_compile; py_compile.compile("path/to/file")'
Read more about py_compile​
Copy link
Edit on GitHub