Add more checks to pre-commit (#3132)

* Add bandit to pre-commit checks

* fix catchall exceptions

* remove unused definitons

* remove unuseed ariables

* Add docstring

* fix B006, B008 errors

* fix B007 error

* ignore B009

* Add checks for formatting and naming
This commit is contained in:
Matthias Mair authored and GitHub committed 2022-06-06 08:56:52 +10:00
1 parent bbbfd003e0
commit f38386b13c
56 files changed
+154 -109

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ class PluginAppConfig(AppConfig):
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP', create=False):
# make sure all plugins are installed
registry.install_plugin_file()
except: # pragma: no cover
except Exception: # pragma: no cover
pass
# get plugins and init them