Sebastian Rittau
f4b89f5f86
Rename check_consistent.py to check_typeshed_structure.py ( #11761 )
2024-04-14 13:34:10 -07: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
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
Stephen Morton
33df486ba2
Allow the use of local-only stubtest allowlists ( #11173 )
...
This makes it nicer to work on a local system with known
divergences from the CI environment
2023-12-16 18:43:33 -08:00
Avasam
49ba409da8
Replace isort with Ruff ( #10912 )
2023-10-27 20:14:38 -07:00
Avasam
35873ec3d8
Doc: Use proper name capitalization of tooling (Ruff, Black, Flake8) ( #10913 )
2023-10-18 23:46:53 +01:00
Ali Hamdan
db3f84e5c2
Allow specifying python version in runtests script ( #10881 )
...
This makes the script usable for packages that do not support the minimum
python version hardcoded in the script.
Another part of #10722
2023-10-13 23:37:12 +02:00
Sebastian Rittau
cfc671f6bd
Use Python 3.8 in runtests.py ( #10600 )
...
We only support running mypy using 3.8+ up, since mypy 1.5 dropped
support for running with Python 3.7.
Closes : #10599
2023-08-21 11:30:13 +02:00
Alex Waygood
2887f60196
Use ruff, not pycln, for removing unused imports ( #10498 )
2023-07-22 12:14:27 +01:00
Alex Waygood
79e092e133
Add some ruff autofixes to CI ( #10458 )
2023-07-20 14:41:52 +02:00
Avasam
2f9ba99c21
Restore error output in runtests.py ( #10110 )
2023-04-29 18:17:26 +01:00
Nikita Sobolev
2bfb6d8212
Fix CI, use new termcolor version ( #10079 )
2023-04-24 07:17:23 -07:00
Avasam
08e6e4ced9
Add pyright testcases / regression tests to the runtests script ( #10002 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-04-14 11:11:21 +01: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
74112dc189
Add a run_stubtest flag to scripts/runtests.py ( #9717 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-02-19 22:10:32 +00:00
Avasam
46f0d918ef
A more accurate termcolor.colored fallback ( #9435 )
2022-12-31 22:52:26 +00:00
Alex Waygood
beb19fea4c
runtests.py: point pycln to pyproject.toml for config settings (#9202 )
...
An oversight in #9197 that was noticed by @Avasam post-merge (thanks!)
2022-11-15 09:40:22 -08:00
Samuel T
c4361674ac
Fix issues with finding stubs in scripts/runtest ( #8896 )
2022-10-13 20:11:23 -07:00
Samuel T
573ee94f35
All scripts/tests: always specify file encoding in calls to open() ( #8882 )
2022-10-11 22:29:36 +01:00
Samuel T
e5d52a39d4
Script to run all checks locally ( #8798 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-10-04 07:21:10 -07:00