Commit Graph
158 Commits
Author SHA1 Message Date
Alex WaygoodandGitHub c6b3211afa Improve test-suite documentation (#7756)
- mypy_test and pyright no longer just test the stubs, they now also test other parts of typeshed as well.
- pytype_test.py can now be run on 3.10, meaning the whole test suite can now also be run on 3.10.
- Various test scripts now have from `__future__ import annotations`, meaning they can now only be run on 3.7+.
- Clean up the description of pyright_test.py, which had a slightly confusing wording.
- Also fix the `--dry-run` config option in mypy_test.py, which I accidentally broke in #7746
2022-04-30 12:43:48 -06:00
Sebastian RittauandGitHub fa701ab0ee Run apt-get update before installing packages (#7749)
Fixes #7743
2022-04-30 06:42:23 -06:00
Sebastian RittauandGitHub 02310d93da Update pyright to 1.1.240 (#7701) 2022-04-27 15:02:30 +02:00
Sebastian RittauandGitHub 54c8f45869 pytype now supports Python 3.10 (#7700) 2022-04-27 10:59:34 +02:00
Jelle ZijlstraandGitHub a17b3afb16 Run pytype test with --print-stderr (#7656) 2022-04-18 10:57:48 +03:00
AkuliandGitHub f87e811345 Remove old comments about pinned Python versions (#7622) 2022-04-14 00:58:47 -07:00
ShantanuandGitHub e90a551ceb Unpin Python micro versions (#7621)
Fixes #7620
2022-04-13 18:47:17 -07:00
Alex WaygoodandGitHub a1b1b95f67 Unpin Python micro versions used by stubtest (#7619)
Add new `asyncio` method, fix allowlists
2022-04-13 22:07:01 +02:00
Sebastian RittauandGitHub 41160cc294 Fix primer comment workflow (#7545) 2022-03-24 08:02:54 -07:00
ShantanuandGitHub 0af746d048 mypy_primer: mention if output is truncated (#7525) 2022-03-21 23:41:31 +01:00
Alex WaygoodandGitHub ec8f51726f Unpin pyright-action (#7499)
The issues that broke typeshed's CI have been fixed by https://github.com/jakebailey/pyright-action/commit/e7c2cbabca407c6ba1eecc5c2317422f8a609c2a
2022-03-16 16:21:05 +00:00
15e21a8dc1 Use pyright 1.1.230 in CI, temporarily pin pyright-action to 1.0.4 (#7495)
* Upgrade pyright to 1.1.230
* Add `type: ignore`s for new pyright checks regarding multiple inheritance
* Temporarily pin pyright-action to 1.0.4, as changes made in 1.0.5 break typeshed's CI

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-16 14:24:55 +00:00
Sebastian RittauandGitHub fdc5863337 Use stubtest 0.941 (#7490) 2022-03-15 00:37:34 -07:00
Alex WaygoodandGitHub 2f338ce077 Further improve mypy_test.py (#7484)
* Run mypy on the 3.11 stdlib in CI, as a regression test for https://github.com/python/mypy/issues/12220
* Correct the docstring at the top of the file following the changes made in #7478
* Stop the test from crashing when run locally if there's an extra file/folder in the stubs directory.
2022-03-13 19:58:30 +00:00
AkuliandGitHub 30a424c661 Finish renaming stubtest.yml to daily.yml (#7448) 2022-03-07 11:09:24 +02:00
ShantanuGitHubhauntsaninja <>
6cdecae6f9 Rename Github workflow (#7445)
Calling this "stubtest.yml" is a little confusing, since most of the
time stubtest is actually run out of "tests.yml". I renamed the workflow
in #7306 and this gets the filename to match.

Co-authored-by: hauntsaninja <>
2022-03-06 15:24:18 -08:00
ShantanuandGitHub 77e5a2d468 Upgrade to stubtest with dunder pos only reverted (#7442) 2022-03-05 18:38:08 -08:00
Alex WaygoodandGitHub cda3d9cf72 Use latest stubtest in CI (#7438) 2022-03-04 15:19:29 +01:00
ShantanuGitHubhauntsaninja <>
c2fb0fb814 Downgrade stubtest a little (#7346)
Fixes #7344 for now.

As discussed in that issue, I think it might make sense to revert the
change to check positional-only arguments on dunders for now, since it
seems to be mostly busywork and has very little benefit for end users.

However, that'll happen on stubtest master, which typeshed isn't yet
ready for.

Co-authored-by: hauntsaninja <>
2022-02-21 17:05:46 -08:00
ShantanuGitHubhauntsaninja <>
075b8e02eb Update stubtest for async and dunder pos only checking (#7333)
Co-authored-by: hauntsaninja <>
2022-02-21 15:54:16 -08:00
ShantanuGitHubhauntsaninja <>
823592e100 Update stubtest for final checking (#7312)
Co-authored-by: hauntsaninja <>
2022-02-19 18:53:15 -08:00
ShantanuGitHubhauntsaninja <>
879b617366 Update stubtest for submodule versions, typeddict fix (#7306)
First step in #7305

Co-authored-by: hauntsaninja <>
2022-02-19 15:53:40 -08:00
Sebastian RittauandGitHub 92685d18f7 Update to Python 3.9.10 and 3.10.2 (#6977) 2022-02-11 17:37:31 -08:00
Nikita SobolevandGitHub b0202f71eb Update actions/github-script to v5 (#7151) 2022-02-08 14:09:36 -08:00
Eric TrautandGitHub 90695fadd1 Updated pyright to latest version (#7132) 2022-02-04 21:09:00 -08:00
61495d80aa Automatically create an issue if the nightly stubtest run fails (#6978)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-01-20 18:24:14 +02:00
Sebastian RittauandGitHub 852723aa69 Temporarily pin Python 3.9.9 and 3.10.1 for stubtest (#6974) 2022-01-20 11:47:46 +01:00
Sebastian RittauandGitHub 28faad6143 Unpin 3.10.1 (#6965) 2022-01-19 06:44:31 -08:00
AkuliandGitHub b2375ddaeb Enable pyright for Python 3.11 (#6904) 2022-01-12 20:07:57 +01:00
Sebastian RittauandGitHub e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
AkuliandGitHub 4aa4cb9ae2 stubtest_third_party: do not install apt packages in the same script (#6714) 2021-12-28 11:33:49 +01:00
Sebastian RittauandGitHub 14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
AkuliandGitHub 66ed211691 Re-enable stdlib stubtest on macos (#6696) 2021-12-26 19:59:04 +01:00
Sebastian RittauandGitHub 3fb2bcd4c1 Restore stubtest 0.930 (#6663) 2021-12-22 20:18:19 -08:00
Sebastian RittauandGitHub ca87296daf Update to mypy 0.930 (#6660)
* Update to mypy 0.930

* Temporarily pin stubtest to 0.921
2021-12-22 12:10:45 -08:00
2ad00c9664 Use stubtest 0.920 (#6589)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-17 13:58:11 +02:00
Sebastian RittauandGitHub 5f850af3ba Upgrade daily stubtest workflow to stubtest 0.920 (#6615) 2021-12-16 20:54:14 +01:00
Sebastian RittauandGitHub 3e49ed754d Allow tringgering some Actions by hand (#6613) 2021-12-16 11:51:34 -08:00
Sebastian RittauandGitHub dae0b127ca Upgrade mypy to 0.920 (#6611)
Temporily pin mypy used for stubtest checks to 0.910, until the stubtest
problems are addressed.
2021-12-16 17:53:36 +01:00
c900c0e769 Fix Python 3.10.1 problems pointed out by stubtest (#6604)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-16 07:05:45 -08:00
AkuliandGitHub 714ba1747b stubtest: temporary pin to python 3.10.0 (#6602) 2021-12-16 12:47:47 +02:00
Sebastian RittauandGitHub 6860df029b Fix workflow by quoting Python version in YAML file (#6600) 2021-12-16 12:32:00 +02:00
ShantanuandGitHub 9aa66f0c37 Run primer on latest Python version (#6593) 2021-12-16 08:56:30 +01:00
AkuliandGitHub f31b49699a fix mypy_primer_comment workflow for more shards (#6533) 2021-12-07 16:12:00 +01:00
AkuliandGitHub 3da1db2698 shard mypy_primer more (#6530) 2021-12-07 15:03:59 +02:00
Sebastian RittauandGitHub 206e1ae91b Remove 'py3' from requirements filename (#6509) 2021-12-06 12:59:04 +02:00
Alex WaygoodandGitHub 1fa1270e00 Bump pyright version to 1.1.192 (#6478) 2021-12-03 09:08:35 +01:00
ec0051a59b ci: fix stubtest_third_party while loop (#6468)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2021-12-01 19:32:33 +02:00
AkuliandGitHub 50d29ef424 ci: Do not run stubtest_third_party for deleted stubs (#6467) 2021-12-01 18:15:17 +01:00
AkuliGitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
bdf906e2bc stubtest_stdlib: fail if there are unused allowlist entries (#6424)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-01 12:10:27 +02:00