This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile, BTaskaya, serhiy.storchaka
Date 2020-04-24.21:41:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587764501.54.0.0873455739835.issue40378@roundup.psfhosted.org>
In-reply-to
Content
I would really like to be able to trigger all warnings consistently and statically without executing the code.

This is useful (for instance) for this simple script which validates the ast: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_ast.py

when run with PYTHONWARNINGS=error I get nice error reports for things such as invalid escape sequence, but I do not get them for string-call which I would like to

This does seem like a bug and prematurely closed, I'm a bit disappointed in the current resolution
History
Date User Action Args
2020-04-24 21:41:41Anthony Sottilesetrecipients: + Anthony Sottile, serhiy.storchaka, BTaskaya
2020-04-24 21:41:41Anthony Sottilesetmessageid: <1587764501.54.0.0873455739835.issue40378@roundup.psfhosted.org>
2020-04-24 21:41:41Anthony Sottilelinkissue40378 messages
2020-04-24 21:41:41Anthony Sottilecreate