Sebastian Rittau
3b385903a1
Pass Requirement objects around ( #12709 )
...
This allows us to keep metadata like python_version and platform_system
and use it to conditionally install packages.
2024-09-30 17:45:58 +02:00
Sebastian Rittau
7ce17a95f6
Document to stubtest_requirements field in the proper place. ( #12707 )
2024-09-30 13:46:48 +02:00
Alex Waygood
9f033bf439
Fixup some pyright CI configuration details ( #12690 )
2024-09-23 13:07:57 -07:00
Avasam
f0e16b8743
Add --threads argument to pyright cli ( #12688 )
2024-09-23 19:19:28 +02:00
Avasam
d34ef50754
Optional pytype install on Windows (no CI) ( #12669 )
2024-09-17 10:58:31 +02:00
Jan Kühle
99f6238b91
Update pytype to 2024.09.13 and Python 3.12 ( #12653 )
2024-09-13 14:01:46 +02:00
Jan Kühle
d326c9bd42
Filter pytype tests by stdlib/VERSIONS file ( #12649 )
...
Filter the files to run pytype tests on by stdlib/VERSIONS file. This
becomes important for Python 3.12, where e.g. checking asynchat.pyi
requires asyncore.pyi, both of which have been removed in 3.12.
2024-09-12 18:40:19 +02:00
Avasam
3719f02dbf
Using precise code for pyright: ignore and re-enabling various pyright tests ( #12576 )
2024-08-22 03:34:52 +02:00
Max Muoto
37807d753a
Use Generator instead of Iterator for 3rd-party context managers ( #12481 )
2024-08-12 14:26:18 +02:00
Sebastian Rittau
cc40120ee5
mypy_test: Exclude sub-modules not in current Py version ( #12352 )
2024-07-16 16:04:54 +02:00
Sebastian Rittau
f0afb04395
Extract VERSIONS parsing to _utils.py ( #12351 )
2024-07-16 12:51:15 +02:00
Alex Waygood
0c3514d036
Sort VERSIONS alphabetically ( #12133 )
2024-06-12 16:03:32 +02:00
Ali Hamdan
e285e52e13
mypy_test.py: warn about incompatible python version only on tested files (#12079 )
2024-06-01 17:51:57 +01:00
Ali Hamdan
a83f02c2d9
Add shapely stubs ( #12033 )
2024-05-25 16:03:34 +02:00
Sebastian Rittau
425c69a6b9
Prefix utility modules with underscore ( #11999 )
2024-05-22 09:35:11 -04:00
Sebastian Rittau
d479e0f24a
Unify stubtest allowlist handling more ( #11986 )
...
This makes it trivial to consistently extend supported allowlists in the future.
2024-05-21 08:25:32 +02:00
Sebastian Rittau
e2e3750ee9
Move stdlib allowlists to stdlib/@tests ( #11982 )
...
Rename py3_common.txt to common.txt
2024-05-20 13:23:02 +02:00
Alex Waygood
b8d144d491
Add 3.13 to our CI ( #11926 )
2024-05-19 16:18:49 -04:00
Alex Waygood
347f8a96b5
regr_test.py: improve several concurrency details ( #11984 )
2024-05-19 14:21:26 -04:00
bzoracler
5bd7150139
improvement: Add AST subclass constructors ( #11880 )
2024-05-18 09:33:07 -04:00
Avasam
1230ced066
runtests: Run pre-commit only on specified files (#11949 )
2024-05-18 09:07:42 -04:00
Sebastian Rittau
916e05ae33
Unify allowlist handling ( #11889 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Ali Hamdan <ali.hamdan.dev@gmail.com >
2024-05-18 08:01:43 -04:00
Jelle Zijlstra
38569b6bb4
stubtest: fix path ( #11884 )
2024-05-10 10:44:42 +02:00
Sebastian Rittau
392ae934fc
Move test_cases to stdlib/@tests/test_cases ( #11865 )
2024-05-09 19:27:09 -07:00
Sebastian Rittau
e436dfe219
Unify test directory handling ( #11864 )
...
Previously, handling of test directories (`@tests` and `test_cases`) was
distributed over multiple files and redundant. This unifies the handling
in the `utils` module. This also fixes some instances where "package"
was used instead of "distribution". And in a few instances paths were
joined by using a `/` in a string, which is incompatible with Windows.
Also move `runtests.py` from `scripts` to `tests`. This is required so that
we can import `utils`, but it's also arguably the better fit. The only
mention of the script is actually in the `tests/README.md` file.
Helps with #11762 .
2024-05-05 16:28:37 +02:00
Shantanu
29db988c0a
Disable uwsgi, pyaudio, jack-client stubtest on macOS ( #11821 )
2024-04-24 08:10:33 +02:00
David Salvisberg
f274c78fe5
Make ExitStack, AbstractContextManager and AsyncAbstractContextManager generic in return type of __exit__ ( #11048 )
2024-04-22 16:43:08 +02:00
Alex Waygood
1a86b3b3fe
stubtest_third_party.py, mypy_test.py: just print everything to stdout (#11809 )
2024-04-22 11:50:47 +01:00
Alex Waygood
4872c30a98
Fix divider lines in stubtest_third_party.py ( #11799 )
2024-04-20 17:10:28 -07:00
Alex Waygood
57f3dcac8d
Bump flake8-pyi to 24.4.1 ( #11791 )
2024-04-19 10:07:56 -07:00
Alex Waygood
7c8e82fe48
Improve the output of tests/stubtest_third_party.py when it fails ( #11763 )
2024-04-14 23:23:25 +01:00
Sebastian Rittau
f4b89f5f86
Rename check_consistent.py to check_typeshed_structure.py ( #11761 )
2024-04-14 13:34:10 -07:00
Sebastian Rittau
d3aa08188f
Ensure that distutils and setuptools._distutils stay consistent ( #11758 )
2024-04-14 15:41:59 +02:00
Sebastian Rittau
451e0efbcb
Improve documentation of the check_consistent script ( #11757 )
2024-04-14 14:59:05 +02:00
peace-maker
d78ce5906b
Run gdb stubtests ( #11644 )
...
The gdb package is only available inside gdb and cannot be installed externally through e.g. pip.
Run the stubtest inside gdb.
2024-03-26 10:57:35 +01:00
Shantanu
13265a9347
xml: update for security fix ( #11648 )
...
Fixes #11643
2024-03-22 13:07:05 -07:00
Sebastian Rittau
a8997209fb
Install pyright from PyPI ( #11575 )
2024-03-16 14:14:31 +01:00
Alex Waygood
0f4a2dfec4
pin uv to 0.1.18 ( #11598 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2024-03-14 11:46:03 +00:00
renovate[bot]
48106feed7
chore(deps): update pytype and pyright ( #11595 )
2024-03-14 09:28:09 +01:00
Alex Waygood
405494891c
Setup renovate for updating dependencies ( #11565 )
2024-03-13 10:27:03 +00:00
Sebastian Rittau
417bdb9ac9
Refactor and merge requirements parsing ( #11581 )
2024-03-12 16:34:47 +01:00
Shantanu
4d8ae17776
Bump mypy to 1.9, add to json.encoder, small fixups ( #11549 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-03-09 14:25:00 -08:00
Alex Waygood
35b74bc431
Rework our linting setup ( #11522 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-03-03 23:11:54 +00:00
Alex Waygood
2c5712b7f4
Use uv for installing dynamic dependencies in mypy_test.py and regr_test.py ( #11517 )
2024-03-02 08:38:34 +00:00
Avasam
5cb2fe97a6
Replace flake8-bugbear with Ruff ( #11500 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-29 18:20:31 +00:00
Nikita Sobolev
675ab38ab7
Update pyright version to 1.1.350 ( #11501 )
...
If you're reading about this commit in an auto-generated changelog: this is an internal change that should have no impact on how these stubs are understood by static-analysis tools such as type checkers or IDEs
2024-02-29 10:14:39 +00:00
Avasam
da69247514
Code improvements from new Ruff checks ( #11498 )
2024-02-28 22:30:18 -08:00
Amin Alaee
9916efae63
Update os. EX_NOTFOUND not available in Linux ( #11461 )
2024-02-26 09:36:33 +01:00
Jelle Zijlstra
bba8cbd6f8
stdlib: more deprecations ( #11009 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-18 06:50:29 -08:00
Jelle Zijlstra
705744af4c
Update for typing_extensions 4.10 ( #11438 )
2024-02-18 00:59:48 -08:00