Setting up a linter can help detect odd or non-typical coding practices.  The following will describe how to setup PyCharm for basic linting with the PyCharm PyLint plugin.
This assumes you have a venv setup within your current project.
For pylint for your current project venv the following two commands should be run in your project root.  The first will install pylint and the second will create an rc file which you can then adjust for your current project.