Pragma scoping in Pylint
3 Oct
2020
3 Oct
'20
4:11 a.m.
Hello, I've been digging around the Pylint codebase trying to understand how the scope of enable/disable pragmas is handled. Several checkers directly reference utils/pragma_parser.py, but the code doesn't seem to go any deeper than checking whether the current line contains a pragma. I can't see that pragma_parser.py is referenced anywhere else in the codebase. Where is the code for managing scope? Is it hiding under a different name? Is it somehow handled in astroid rather than in Pylint itself? Thanks for any answers, and thanks for providing such a useful tool! William Tracy
1290
Age (days ago)
1292
Last active (days ago)
1 comments
2 participants
participants (2)
-
Florian Bruhin
-
William Tracy