Commit Graph

75 Commits

Author SHA1 Message Date
renovate[bot] 8b31f2639e Update most test/lint dependencies (#15582) 2026-04-01 17:54:51 +02:00
Semyon Moroz bf72147848 [stubsabot] Use Literal and update reason field (#14904) 2025-10-31 18:10:28 +01:00
Semyon Moroz 1316418088 [stubsabot] Fix typo in name "Linux" (#14705) 2025-09-12 18:25:08 +01:00
Brian Schubert 10dba69727 [stubsabot] Support diff analysis for GitLab hosted projects (#14542) 2025-08-08 16:50:58 +02:00
Alexandre Detiste 9ab7fde0a0 prefer newer "tomllib" over "tomli" backport (#14486)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-28 17:06:21 +01:00
Sebastian Rittau eb96b7dbc8 stubsabot: Handle errors when determining action (#14473)
Use colors for output and move processed distribution name to the front
2025-07-27 13:49:00 +02:00
Semyon Moroz 7cf443e754 [stubsabot] Move obsolete data to ts_utils.metadata (#14422) 2025-07-21 14:47:03 +02:00
Semyon Moroz 58b11302b5 [stubsabot] Fix comparison sign (#14426) 2025-07-17 08:15:04 +02:00
Semyon Moroz 82e2e9c53a [stubsabot] Support "Removal" PRs (#14401) 2025-07-16 13:48:04 +02:00
Semyon Moroz 138a54b00f [stubsabot] Make more readable logging message (#14405) 2025-07-12 19:15:05 +02:00
Alex Waygood d92a6449c2 Remove more Python 3.8 cruft (#13787) 2025-04-03 11:56:38 +01:00
Avasam eafa274f1b Enable Ruff PLW (Pylint Warning) (#13749) 2025-04-01 15:12:15 +02:00
Sebastian Rittau 882e8fd2b3 [stubsabot] Extend warning text when stubtest is disabled (#13664) 2025-03-18 13:35:25 +01:00
Avasam 6f98c59f93 Enable Ruff PLR (Pylint Refactor) (#13307) 2025-03-03 18:03:34 +01:00
Avasam a540f78784 Enable Ruff EXE (flake8-executable) (#13346) 2025-01-02 18:34:05 +00:00
Avasam 73ce98b5a3 Enable Ruff N (pep8-naming) on non-stubs (#13327) 2025-01-02 10:22:40 +00:00
Avasam bff5547abc Use lib/ts_utils for scripts/sync_protobuf (#12913)
- Simplified `download_file` error handling (400+ return codes already raised errors!)
- Moved `update_metadata` from `scripts/sync_protobuf/_utils.py` to `lib/ts_utils/metadata.py`
- Improved `update_metadata` to support any key (values unvalidated atm) and return the modified dictionary
- Updated `scripts/stubsabot.py` to use `update_metadata`
- Updated `scripts/sync_protobuf/*` to use  `lib/ts_utils`
- Updated `scripts/sync_protobuf/tensorflow.py` and `scripts/sync_protobuf/google_protobuf.py` to use the version directly from the `METADATA.toml` file
2024-10-28 11:47:52 +01: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
Sebastian Rittau a2d6d5315b [stubsabot] Use common functions from ts_utils (#12772) 2024-10-14 15:41:28 +02:00
Sebastian Rittau 1fa4986f71 Move common utility functions to a common library (#12773) 2024-10-14 08:00:02 +02: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
Sebastian Rittau 425c69a6b9 Prefix utility modules with underscore (#11999) 2024-05-22 09:35:11 -04:00
Alex Waygood 4872c30a98 Fix divider lines in stubtest_third_party.py (#11799) 2024-04-20 17:10:28 -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 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
Avasam da69247514 Code improvements from new Ruff checks (#11498) 2024-02-28 22:30:18 -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
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
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
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
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
Alex Waygood 7289fb9f77 Stubsabot: Fix incorrect diff link when a py.typed was added in a micro version (#10375) 2023-06-28 11:48:11 +02:00
Alex Waygood d32754c336 Stubsabot: mark stubs as obsolete, even if the py.typed file was added in a micro version (#10368) 2023-06-27 20:17:17 +01:00
Nikita Sobolev a2457367d0 Remove emoji stubs (#10160)
Remove `emoji` stubs, refs #8760
2023-05-09 09:28:11 +01:00
Alex Waygood a035372a91 Bump various test dependencies (#10028) 2023-04-10 13:58:26 +01:00
Shantanu aac3863752 stubsabot: fix legacy version parsing (#9866)
New `packaging` is strict and doesn't like paramiko's pokemon versioning
scheme from 2004

Fixes #9865
2023-03-10 23:30:53 -08:00
Alex Waygood 8a2bc88409 Improve typechecking of the test suite (#9806) 2023-03-08 08:35:41 +00:00
Alex Waygood 1d2ae2598b Fix some typos in comments (#9802) 2023-02-23 22:11:24 +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