File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -173,21 +173,21 @@ spell_check_changed() {
173173    fi 
174174}
175175
176- #   echo 'vllm-ascend codespell:'
177- #  #  Run Codespell
178- #  # # This flag runs spell check of individual files. --files *must* be the first command line
179- #  # # arg to use this option.
180- #   if [[ "$1" == '--files' ]]; then
181- #      spell_check "${@:2}"
182- #      # If `--all` is passed, then any further arguments are ignored and the
183- #      # entire python directory is linted.
184- #   elif [[ "$1" == '--all' ]]; then
185- #      spell_check_all
186- #   else
187- #      # Check spelling only of the files that changed in last commit.
188- #      spell_check_changed
189- #   fi
190- #   echo 'vllm-ascend codespell: Done'
176+ echo  ' vllm-ascend codespell:' 
177+ #  Run Codespell
178+ # # This flag runs spell check of individual files. --files *must* be the first command line
179+ # # arg to use this option.
180+ if  [[ " $1 "   ==  ' --files'   ]];  then 
181+    spell_check " ${@: 2} " 
182+    #  If `--all` is passed, then any further arguments are ignored and the
183+    #  entire python directory is linted.
184+ elif  [[ " $1 "   ==  ' --all'   ]];  then 
185+    spell_check_all
186+ else 
187+    #  Check spelling only of the files that changed in last commit.
188+    spell_check_changed
189+ fi 
190+ echo  ' vllm-ascend codespell: Done' 
191191
192192
193193#  Lint specified files
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments