mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 07:55:07 +00:00
Code style improvements (#4683)
* fix list comps * mopre comp fixes * reduce computing cost on any() calls * add bugbear * check for clean imports * only allow limited relative imports * fix notification method lookup * fix notification method assigement * rewrite assigment * fix upstream changes to new style * fix upstream change to new coding style
This commit is contained in:
1 parent
660a4f8e39
commit
abee2cee88
44 files changed
+96
-93
No files matched your search
@@ -23,4 +23,4 @@ class EventPluginSample(EventMixin, InvenTreePlugin):
|
||||
|
||||
# Issue warning that we can test for
|
||||
if settings.PLUGIN_TESTING:
|
||||
warnings.warn(f'Event `{event}` triggered')
|
||||
warnings.warn(f'Event `{event}` triggered', stacklevel=2)
|
||||
Reference in new issue
Block a user