Put some pre-commit checks in place#7
Put some pre-commit checks in place#7nicholasmhughes wants to merge 3 commits intolightspin-tech:mainfrom
Conversation
|
Hey @nicholasmhughes looks like That Bandit check is the same thing that Snyk and CodeQL yell at me about - I will do some testing on setting |
|
Good (controversial) discussion here on quoting, but scroll to the bottom if you really want single quotes. It's possible to keep them. Instituting pre-commit checks is a good way to allow contributors to ensure they're adhering to standards before commit and pushing... only to find out that something is failing the pipeline. |
|
I recommend running pylint to cleanup your Python style (PEP 8) (e.g. snake_case vs camelCase) -- didn't want to put you on blast on LinkedIn ;) |
Just a suggestion, but putting some code standards in place programmatically with pre-commit will keep the code looking uniform.
There's also a bandit security check that's failing in several sections of the code which you might want to investigate:
If you accept this, you'll probably want to put a pre-commit GitHub Action in place pretty quickly to ensure contributors are using it.
This is just a starting point. Might be cool to extend with pylint and other things that make sense.