Commit Graph

135 Commits

Author SHA1 Message Date
Avasam
c025e37bbb Rewrote protobuf generation scripts in Python (#12527) 2024-09-19 08:11:21 +02:00
Avasam
d3ca513ddb Bump tensorflow to 2.17.* (#12512) 2024-08-12 13:39:34 +02:00
sobolevn
c4f7a72e50 macos does not have sed --in-place argument (#12330) 2024-07-13 06:02:22 -07:00
sobolevn
7c26da22bd Fix str2bool failure on stubsabot dry-run (#12287) 2024-07-06 13:42:15 -07:00
Sebastian Rittau
311612ed38 [stubsabot] Improve error message (#12273)
Cf. #12272
2024-07-04 10:01:57 +01:00
sobolevn
db7dd4cd54 Replace Github -> GitHub in scripts/stubsabot.py (#12228) 2024-06-27 17:15:16 +02:00
Avasam
1dbf21fa8b Bump protobuf to 5.27.* (#12197) 2024-06-25 12:26:56 +02:00
Sebastian Rittau
425c69a6b9 Prefix utility modules with underscore (#11999) 2024-05-22 09:35:11 -04: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
Sebastian Rittau
caeb45a9df Use apt-get to install packages (#11824) 2024-04-27 14:25:22 +02:00
Avasam
b3bfdadb45 Bump tensorflow to 2.16.* (#11696) 2024-04-22 16:37:33 +02:00
Avasam
b3bfbefa7f Create script to generate s2clientprotocol protobuf stubs (#11772)
Regenerate using mypy-protobuf 3.6
2024-04-22 15:05:21 +02:00
Avasam
1017c525f8 Simplify protoc install in protobuf generation scripts (#11785) 2024-04-21 19:33:31 +02: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
Avasam
ce049d505f Bump protobuf to 5.26.* (#11784)
Also update generate_proto_stubs script
2024-04-19 09:01:50 +02: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
Avasam
fe02cba606 Bump mypy-protobuf in sync_tensorflow script and improve generation scripts (#11740) 2024-04-10 09:12:07 -04:00
Avasam
144ac0a1a8 Bump protobuf to v25.3 (#11694) 2024-04-09 20:55:27 +02:00
Avasam
2135c8ced8 Bump protobuf to v24.4 and update generator script (#11693) 2024-04-07 06:57:40 -04:00
Sebastian Rittau
87900248b0 Update label names used by bots (#11650) 2024-03-23 12:20:36 +01:00
Alex Waygood
5c75292f26 stubsabot: Skip over empty __init__.py files when determining if all Python files are covered by py.typed markers (#11634)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2024-03-20 20:54:47 +00:00
Sebastian Rittau
0b1e5d3f34 stubsabot: Skip test files in diff analysis (#11606) 2024-03-15 13:08:40 +01:00
renovate[bot]
48106feed7 chore(deps): update pytype and pyright (#11595) 2024-03-14 09:28:09 +01: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
Avasam
88238202d7 Add pyupgrade check outdated-version-block (UP036) (#11509)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-03-01 07:15:53 -08: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
Sebastian Rittau
23604858a6 Remove Python 3.7 branches (#11238) 2024-01-05 11:39:39 +01: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
Alex Waygood
a40e683784 Teach stubsabot to be smarter about the required locations of py.typed files (#11053) 2023-11-22 22:49:58 +00:00
Alex Waygood
519a7dfcb8 Improve a few dataclass reprs in stubsabot (#11050) 2023-11-21 14:20:16 +00:00
Avasam
49ba409da8 Replace isort with Ruff (#10912) 2023-10-27 20:14:38 -07:00
Jelle Zijlstra
f9f30cc0f2 Update mypy-protobuf (#10914)
Co-authored-by: Avasam <samuel.06@hotmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-22 16:31:02 -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
Alex Waygood
e1b60060ec Do a dry run of stubsabot on PRs touching scripts/ or tests/ (#10508) 2023-09-22 20:36:21 -07:00
Shantanu
a3f4418e90 Fix stubsabot handling of post releases (#10667)
Fixes #10666
2023-09-06 12:06:07 +02:00
Akuli
a785041250 create_baseline_stubs.py: Improve pyright config file editing (#10629)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-30 17:43:46 +03:00
Alex Waygood
0692576dab create_baseline_stubs.py: ensure generated METADATA.toml files end with a newline (#10627) 2023-08-29 16:37:28 +02:00
Shantanu
23679a0cb8 stubsabot: avoid validating diff info url (#10620)
It looks like all the timeouts are happening in the get_diff_info code.
I don't think we really need to validate the URL exists. In any case, we
probably end up hitting a very similar endpoint later in analyze_diff.
2023-08-26 19:34:57 -07: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
0d8a6bc200 Add more checks in parse_metadata.py for the upstream_repository field (#10513) 2023-07-28 14:04:58 +01:00
Sebastian Rittau
47905d2d19 stubsabot: Add stubsabot label to PRs (#10507) 2023-07-25 17:40:11 +02:00
Sebastian Rittau
9b94bd4e5f stubsabot: Add distributions argument (#10505)
[stubsabot] Add distributions argument

This allows to specify which explicitly which distributions to update.
Useful for testing.
2023-07-25 06:40:55 -07:00
Alex Waygood
2887f60196 Use ruff, not pycln, for removing unused imports (#10498) 2023-07-22 12:14:27 +01:00
Alex Waygood
49a2371d7a Auto-add upstream URLs in create_baseline_stubs.py (#10491)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-21 15:56:53 +01:00
Sebastian Rittau
26e8b9c68a [stubsabot] Include repository in issue text (#10488)
Also, get GitHub repository for diff from METADATA.toml, instead of
scraping it from PyPI.
2023-07-20 17:22:15 +02:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00