13 import queue |
13 import queue |
14 import sys |
14 import sys |
15 |
15 |
16 import pycodestyle |
16 import pycodestyle |
17 |
17 |
|
18 from CodeStyleFixer import CodeStyleFixer |
18 from Complexity.ComplexityChecker import ComplexityChecker |
19 from Complexity.ComplexityChecker import ComplexityChecker |
19 from DocStyle.DocStyleChecker import DocStyleChecker |
20 from DocStyle.DocStyleChecker import DocStyleChecker |
20 from Imports.ImportsChecker import ImportsChecker |
21 from Imports.ImportsChecker import ImportsChecker |
21 from Miscellaneous.MiscellaneousChecker import MiscellaneousChecker |
22 from Miscellaneous.MiscellaneousChecker import MiscellaneousChecker |
22 from Naming.NamingStyleChecker import NamingStyleChecker |
23 from Naming.NamingStyleChecker import NamingStyleChecker |
482 |
481 |
483 # check function annotations |
482 # check function annotations |
484 if sys.version_info >= (3, 8, 0): |
483 if sys.version_info >= (3, 8, 0): |
485 # annotations with type comments are supported from |
484 # annotations with type comments are supported from |
486 # Python 3.8 on |
485 # Python 3.8 on |
487 from Annotations.AnnotationsChecker import AnnotationsChecker |
486 from Annotations.AnnotationsChecker import ( # __IGNORE_WARNING_I10__ |
|
487 AnnotationsChecker, |
|
488 ) |
488 |
489 |
489 annotationsChecker = AnnotationsChecker( |
490 annotationsChecker = AnnotationsChecker( |
490 source, |
491 source, |
491 filename, |
492 filename, |
492 tree, |
493 tree, |