<s> import os <EOL> import sys <EOL> from pylama . lint import Linter as BaseLinter <EOL> from . isort import SortImports <EOL> class Linter ( BaseLinter ) : <EOL> def allow ( self , path ) : <EOL> """<STR_LIT>""" <EOL> return path . endswith ( '<STR_LIT>' ) <EOL> def run ( self , path , ** meta ) : <EOL> """<STR_LIT>""" <EOL> with open ( os . devnull , '<STR_LIT:w>' ) as devnull : <EOL> sys . stdout = devnull <EOL> if SortImports ( path , check = True ) . incorrectly_sorted : <EOL> return [ { <EOL> '<STR_LIT>' : <NUM_LIT:0> , <EOL> '<STR_LIT>' : <NUM_LIT:0> , <EOL> '<STR_LIT:text>' : '<STR_LIT>' , <EOL> '<STR_LIT:type>' : '<STR_LIT>' <EOL> } ] <EOL> else : <EOL> return [ ] </s>
