]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Explicitly disallow some mypy checks for tests/
authorDenis Laxalde <denis.laxalde@dalibo.com>
Mon, 4 Oct 2021 09:20:55 +0000 (11:20 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 4 Oct 2021 16:34:23 +0000 (17:34 +0100)
commit5494dfc5efe91980eab78b79680ad2e7fea6f007
treec8a1db7f66af2be9de7516715eb242f425bf73c7
parent90c9987d43d5b86cce9f5e42bc17aa35f01c4f4a
Explicitly disallow some mypy checks for tests/

When running mypy on the tests/ directory, the top-level mypy
configuration is used and strict mode is thus enforced whereas tests
code is not typed. As mypy might be run in people editors by default,
the current situation makes this uncomfortable.

By disabling obvious checks, we get a nicer developer experience. A more
straightforward option would be to set 'check_untyped_defs = False', but
this would prevent valid code to be checked, so the current proposal is
a trade-off.
.mypy.ini