mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 18:15:40 +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:
@ -23,7 +23,7 @@ def define_env(env):
|
||||
|
||||
for asset in os.listdir(directory):
|
||||
|
||||
if any([asset.endswith(x) for x in allowed]):
|
||||
if any(asset.endswith(x) for x in allowed):
|
||||
assets.append(os.path.join(subdir, asset))
|
||||
|
||||
return assets
|
||||
|
Reference in New Issue
Block a user