Commits

Yu-Jie Lin committed c16e76c

include linkcheck for checking

  • Participants
  • Parent commits 0f95873

Comments (0)

Files changed (1)

 library_name = 'lnkckr'
 script_name = 'linkcheck'
 
+CHECK_LIST = (script_name, '.')
+
 # ============================================================================
 
 
     print('Results')
     print('=======')
     print()
-    report = p8.check_files('.')
+    report = p8.check_files(CHECK_LIST)
 
     print()
     print('Statistics')
     print('Results')
     print('=======')
     print()
-    warnings = api.checkRecursive('.', reporter)
+    warnings = api.checkRecursive(CHECK_LIST, reporter)
     print()
     print('Total warnings: %d' % warnings)
 
     print()
     print('Exclude:', EXCLUDE_SCRIPTS)
 
-    files = ['setup.py', script_name, 'lnkckr'] + glob('tests/*.py')
+    files = list(CHECK_LIST) + ['setup.py', 'lnkckr'] + glob('tests/*.py')
     args = [
       '--ignore=%s' % ','.join(EXCLUDE_SCRIPTS),
       '--output-format=colorized',