This is an archive of the discontinued Mercurial Phabricator instance.

mypy: add a mypy.ini config file
Needs RevisionPublic

Authored by indygreg on Aug 4 2019, 3:52 PM.

Details

Reviewers
baymax
Group Reviewers
hg-reviewers
Summary

Static analysis is good. Let's encourage its use by adding
a mypy.ini config file to the repo that has reasonable defaults.

With this file in place, mypy appears to "just work" out of
the box. It yields a ton of errors and warnings though. But
it's a start!

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Aug 4 2019, 3:52 PM
pulkit added a subscriber: pulkit.Aug 7 2019, 6:20 PM

I am +1 on this. If I don't hear any objection on it until next week, I will queue it. Thanks for doing this work!

Did you run tests on this patch? IIRC there's a test that'll fail ;)

baymax requested changes to this revision.Jan 24 2020, 12:32 PM

There seems to have been no activities on this Diff for the past 3 Months.

By policy, we are automatically moving it out of the need-review state.

Please, move it back to need-review without hesitation if this diff should still be discussed.

:baymax:need-review-idle:

This revision now requires changes to proceed.Jan 24 2020, 12:32 PM