Check indentation errors in python ๐
January 18, 2025 ยท View on GitHub
Use tabnanny in python standard library for this.
python -m tabnanny hack-nasa.py
another way is to check if the files successfully compliles or not
python3 -m py_compile hack-nasa.py
# or
python3 -c 'import py_compile; py_compile.compile("path/to/file")'
Read more about
py_compile