Best Practices

Linters

Linters perform static analysis of source codes and check for symantic discrepancies. When you lint your code, it’s passed through a basic quality checking tool that provides instructions on how eliminate basic syntactic inconsistencies.

Formatters

Formatters are similar tools that tries to restructure your code spacing, line length, argument positioning etc to ensure that your code looks consistent across different files or projects.

References

  1. https://py-vscode.readthedocs.io/en/latest/files/linting.html