Commit Graph

271 Commits

Author SHA1 Message Date
Alex Waygood e21a2c70b7 Bump various test dependencies (#11041) 2023-11-18 15:12:06 +00:00
Alex Waygood ac88fdfdbf Bump various test dependencies (#11030) 2023-11-15 15:39:45 +00:00
Nikita Sobolev 3f54f7e3de Bump ruff (#10988) 2023-11-07 10:48:08 +00:00
Alex Waygood 40caa050ce Simplify how we run mypy_test.py on Python 3.12 (#10923) 2023-10-23 22:13:22 +01:00
Avasam 21fcd8960f Use Ruff for from __future__ import annotations checks (#10910) 2023-10-19 11:40:41 +02:00
Avasam 35873ec3d8 Doc: Use proper name capitalization of tooling (Ruff, Black, Flake8) (#10913) 2023-10-18 23:46:53 +01:00
Rebecca Chen 1ecaab1641 Run pytype_test in Python 3.11. (#10903)
As of version 2023.10.17, pytype now supports 3.11.
2023-10-18 00:44:14 +01:00
Alex Waygood f3506eba47 Bump various test dependency pins (#10877) 2023-10-13 13:07:52 +02:00
Alex Waygood a0047c4266 Use Python 3.11 for the stub_uploader tests in the daily test (#10854) 2023-10-07 01:51:15 +01:00
Alex Waygood 5e7090ce4b Skip all parts of the daily test on forks of typeshed (#10782)
We skip 2/3 jobs in the daily test when running on forks:

https://github.com/python/typeshed/blob/b23042e854e79b54c4d2c609cf1e12a2357335a9/.github/workflows/daily.yml#L33

https://github.com/python/typeshed/blob/b23042e854e79b54c4d2c609cf1e12a2357335a9/.github/workflows/daily.yml#L59

But we missed this condition for the stub-uploader part

Fixes #10781
2023-09-26 20:19:43 +01:00
Alex Waygood e1b60060ec Do a dry run of stubsabot on PRs touching scripts/ or tests/ (#10508) 2023-09-22 20:36:21 -07:00
Alex Waygood 4ae6d38f96 Use latest Python for stubtest in CI (#10641) 2023-08-30 18:50:11 +02:00
Alex Waygood ef758b66c0 Bump mypy to 1.5.1 (#10559) 2023-08-16 12:18:31 -07:00
Alex Waygood 39fd112f3e Further improve non-types dependency handling in pytype_test.py (#10393) 2023-07-01 00:24:38 +01:00
Alex Waygood 7fdd05003a pytype_test.py: Use importlib.metadata instead of pkg_resources (#10391) 2023-06-30 21:37:06 +01:00
Alex Waygood c63dd5941f Improve how we run pyright in CI (#10258)
Avoid using the deprecated `--venv-path` command-line argument
2023-06-23 09:26:19 +01:00
Alex Waygood 6652add920 CI: run more jobs on py311 (#10342) 2023-06-21 06:54:49 -07:00
Alex Waygood 007a65a7fe CI: Pin Python to 3.7.16 for stubtest runs on macos (#10336) 2023-06-20 16:35:28 -07:00
Shantanu 7df870f452 Run stubtest for Python 3.12 (#10253) 2023-06-04 05:53:03 -07:00
Nikita Sobolev 6de0aa0c70 CI: Unpin micro-versions (#10239) 2023-06-02 11:23:33 +01:00
Alex Waygood 1221b47118 Improve how we run mypy on the py312 stubs (#10152) 2023-05-10 10:05:45 +02:00
Alex Waygood d208d5a833 Pyright: create a more isolated environment in CI for testing stubs (#10121) 2023-05-01 19:02:45 +01:00
Alex Waygood 2c3449694b Run mypy and pyright on our py312 stubs in CI (#10119) 2023-04-30 15:31:08 +01:00
Alex Waygood 557fb3326a mypy_primer: Run on Python 3.11 (#9336)
`mypy_primer` now runs on Python 3.11 in CI, meaning we get `mypy_primer` coverage for PRs fiddling with `ExceptionGroup`s or other new features added in Python 3.11
2023-04-11 11:51:09 +01:00
Avasam a5fc97e6da Fix misnamed parameter in stubtest_third_party (#9716) 2023-03-09 07:33:45 +00:00
Alex Waygood 8a2bc88409 Improve typechecking of the test suite (#9806) 2023-03-08 08:35:41 +00:00
Avasam 75f47d0cb1 Typecheck typeshed's code with pyright (#9793)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-02-22 18:53:07 +00:00
Avasam 5ac80781ec Integrate requirements-stubtest.txt into METADATA.toml (#9778) 2023-02-21 11:19:50 +01:00
Avasam a6c6bc1b8e Fix stdlib/disutils testing (#9734) 2023-02-21 08:06:20 +00:00
Alex Waygood e6e7fab111 Add some more environment variables to speedup brew installs in CI (#9786) 2023-02-21 00:20:28 +00:00
Shantanu 5c54e52e23 Fix default value of input, remove now unused allowlist entry for epoll (#9742) 2023-02-17 01:55:31 +02:00
Avasam 2930f8c6f0 Set HOMEBREW_NO_INSTALL_CLEANUP to speedup brew installs (#9713) 2023-02-11 11:20:20 -08:00
Alex Waygood 60789273a2 Improve pyright verification of third-party test cases in CI (#9650)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-02-07 11:53:54 +00:00
Avasam 2ffd867f25 Increase mypy_primer comment length (#9598) 2023-01-29 11:43:38 -08:00
Alex Waygood c216b74e39 Centralize METADATA.toml parsing in the test suite (#9534) 2023-01-28 15:13:46 +00:00
Avasam 63c7fb0914 Use environment marker to restrict flake8 install (#9510) 2023-01-12 09:57:18 +00:00
Alex Waygood 0b903441e8 Allow stubs to depend on numpy (#9499) 2023-01-12 09:01:23 +00:00
Avasam 70025c3723 Support third-party stub external dependencies in pytype (#9449)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-04 19:32:23 +00:00
Alex Waygood 28abff4efe Revert "Use --additional-flags='check-untyped-defs' when running mypy_primer" (#9451)
Revert "Use `--additional-flags='check-untyped-defs'` when running mypy_primer (#9433)"

This reverts commit f794cdd582.
2023-01-03 22:58:32 +00:00
Avasam 3e24c65c3b Rework how pyright is run in CI to allow for non-types dependencies(#9434)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-03 22:43:56 +00:00
Avasam 7c15e6998f Autoformat YAML files (#9450) 2023-01-03 08:55:06 +01:00
Avasam 4a7e14e5ad Deduplicate stubtest command in actions (#9444) 2023-01-02 22:19:47 +00:00
Alex Waygood f794cdd582 Use --additional-flags='check-untyped-defs' when running mypy_primer (#9433) 2022-12-31 11:01:54 -08:00
Alex Waygood ba54f148ef Colorize third-party stubtest and stubsabot outputs in CI (#9432) 2022-12-31 14:22:22 +00:00
Alex Waygood 5fb21861f9 Colorize flake8 output in CI (#9422) 2022-12-28 12:49:51 +01:00
Avasam 3c58efd9a2 mypy_primer: Resolve node.js 12 actions deprecation warning (#9421) 2022-12-28 02:23:44 +00:00
Alex Waygood 8671fc5c0f regr_test.py: Allow non-types dependencies (#9382) 2022-12-23 13:55:54 -08:00
Alex Waygood 352f496d69 Unpin stubtest from Python 3.10.8 and 3.11.0 (#9368) 2022-12-20 20:31:13 +00:00
Alex Waygood 7a9818e565 Colorize output of stdlib stubtest in CI (#9379) 2022-12-17 13:08:17 -08:00
Alex Waygood b356abcbda Stdlib stubtest: Temporarily pin Python to 3.10.8 and 3.11.0 in CI (#9361)
Stubtest: pin Python to 3.10.8 and 3.11.0 in CI
2022-12-14 10:48:22 -08:00