File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -381,21 +381,24 @@ def check(location, verbose):
381381
382382 msg_format = '%(sever)s: %(message)s'
383383 print_errors = []
384+ number_of_errors = 0
384385 for severity , message in errors :
385386 sever = severities [severity ]
387+ # Only problematic_errors should be counted.
388+ # Others such as INFO should not be counted as error.
389+ if sever in problematic_errors :
390+ number_of_errors = number_of_errors + 1
386391 if verbose :
387392 print_errors .append (msg_format % locals ())
388393 elif sever in problematic_errors :
389394 print_errors .append (msg_format % locals ())
390395
391- number_of_errors = len (print_errors )
392-
393396 for err in print_errors :
394397 print (err )
395398
396399 if print_errors :
397400 click .echo ('Found {} errors.' .format (number_of_errors ))
398- # FIXME: not sure this is the right way to exit with a retrun code
401+ # FIXME: not sure this is the right way to exit with a return code
399402 sys .exit (1 )
400403 else :
401404 click .echo ('No error found.' )
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ copyright: |
1414
1515license_expression: bsd-new and python and unicode-data-software
1616
17- license_file:
18- - idna.LICENSE
19- - PSF.LICENSE
20- - unicode-data-software.LICENSE
17+ license_file: |
18+ idna.LICENSE
19+ PSF.LICENSE
20+ unicode-data-software.LICENSE
2121notice_file: idna.NOTICE
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ owner: Python Packaging Authority
1010copyright: Copyright (c) Donald Stufft and individual contributors.
1111
1212license_expression: bsd-simplified or apache-2.0
13- license_file:
14- - apache-2.0.LICENSE
15- - packaging.LICENSE
13+ license_file: |
14+ apache-2.0.LICENSE
15+ packaging.LICENSE
1616
1717notice_file: packaging.NOTICE
You can’t perform that action at this time.
0 commit comments