Avasam
a540f78784
Enable Ruff EXE (flake8-executable) ( #13346 )
2025-01-02 18:34:05 +00:00
Avasam
ebc9ff8718
Enable Ruff ARG (flake8-unsued-arguments) and remove unused arguments ( #13334 )
2024-12-29 17:21:19 -08:00
Alex Waygood
90e6bd9aca
Pin keras to 3.6.* when stubtesting tensorflow ( #13137 )
2024-11-27 08:50:23 -08:00
Avasam
6db3e0cec5
check_distutils test: Make the file path of missing setuptools distutils files more obvious (#13037 )
2024-11-19 03:50:02 -08:00
Sebastian Rittau
c020ccc821
Print gdb version to ease debugging ( #12836 )
2024-10-21 04:35:55 -07:00
Sebastian Rittau
2d0f6d8277
Bundle path handling in ts_utils.paths ( #12805 )
2024-10-17 08:16:10 +02:00
Sebastian Rittau
36fb63ebc8
Support compatible version specifiers ( #12771 )
2024-10-17 08:15:30 +02:00
Alex Waygood
c9d3ca6f48
Touchups to tests/REGRESSION.md ( #12826 )
2024-10-17 00:43:39 +02:00
Sebastian Rittau
1fa4986f71
Move common utility functions to a common library ( #12773 )
2024-10-14 08:00:02 +02:00
Alex Waygood
ad96829bfa
Remove linters from requirements-tests.txt ( #12725 )
2024-10-05 14:37:27 +01:00
Sebastian Rittau
848cf9103d
Remove Pillow stubs ( #12732 )
2024-10-03 11:33:09 +02:00
Sebastian Rittau
26b3c69ee4
Add option to keep tmp dir to stubtest script ( #12151 )
2024-10-02 19:48:52 -07:00
Sebastian Rittau
6ba6589144
Support environment markers in requires fields ( #12711 )
2024-10-02 10:14:33 +02:00
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