3333from django .core .files .storage import FileSystemStorage
3434
3535from django .conf import settings
36- from django .apps import apps
36+ from django .apps import apps #pylint: disable=unused-import
3737
3838from django_plotly_dash .dash_wrapper import all_apps
3939
4040class DashComponentFinder (BaseFinder ):
4141 'Find static files in components'
4242
43+ #pylint: disable=abstract-method, redefined-builtin
44+
4345 def __init__ (self ):
4446
4547 self .locations = []
@@ -87,20 +89,24 @@ def find(self, path, all=False):
8789
8890 return matches
8991
92+ # pylint: disable=inconsistent-return-statements, no-self-use
9093 def find_location (self , path ):
94+ 'Return location, if it exists'
9195 if os .path .exists (path ):
9296 return path
9397
9498 def list (self , ignore_patterns ):
9599 for component_name in self .locations :
96100 storage = self .storages [component_name ]
97101 for path in get_files (storage , ignore_patterns + self .ignore_patterns ):
98- print ("DashAssetFinder" ,path ,storage )
102+ print ("DashAssetFinder" , path , storage )
99103 yield path , storage
100104
101105class DashAssetFinder (BaseFinder ):
102106 'Find static files in asset directories'
103107
108+ #pylint: disable=unused-import, unused-variable, no-name-in-module, import-error, abstract-method
109+
104110 def __init__ (self ):
105111
106112 # Get all registered apps
@@ -120,7 +126,7 @@ def __init__(self):
120126 for app_slug , obj in self .apps .items ():
121127 caller_module = obj .caller_module
122128 location = obj .caller_module_location
123- path_directory = os .path .join (os .path .dirname (location ),self .subdir )
129+ path_directory = os .path .join (os .path .dirname (location ), self .subdir )
124130
125131 if os .path .isdir (path_directory ):
126132
@@ -134,6 +140,7 @@ def __init__(self):
134140
135141 super (DashAssetFinder , self ).__init__ ()
136142
143+ #pylint: disable=redefined-builtin
137144 def find (self , path , all = False ):
138145 return []
139146
0 commit comments