Commit Graph

129 Commits

Author SHA1 Message Date
lev-blit 563213272e Use dashes instead of underscores for METADATA.toml field names (#15614) 2026-04-07 15:03:53 +02:00
Sebastian Rittau a6fba4f147 Update project.requires-python to >=3.10 (#15402) 2026-02-09 16:48:13 +01:00
Sebastian Rittau 7ff653f0d1 Remove explicit target-version field for ruff (#15400)
This is inferred from project.requires-python
2026-02-09 14:17:06 +01:00
Sebastian Rittau ba29e20aa7 ruff knows zoneinfo is part of the stdlib now (#15398) 2026-02-09 12:41:35 +01:00
Sebastian Rittau 576a71a75e Officially remove Python 3.9 support (#15360) 2026-02-09 12:16:15 +01:00
Avasam 6d4db2d1ae Update Ruff configs for 0.13 (#14775)
- New https://docs.astral.sh/ruff/settings/#lint_future-annotations setting for our scripts
- `FURB`: I blindly added out of preview rules. We need to validate if there's any we don't want.
- `PYI`: Added rules that didn't have autofixes before and which we don't already noqa anywhere.
- `SIM117`'s autofix is out of preview, but as per https://github.com/python/typeshed/pull/13309 we weren't sure whether we wanted to apply it all the time.
- `SIM905`: New rule, I think we'd always want it.
- `PLC0205`: I moved that one to stubs-only ignore (was added in https://github.com/python/typeshed/pull/14619 by @JelleZijlstra ).
2025-11-02 18:37:10 -05:00
lev-blit d7cf36970f don't ignore UP038 in ruff (#14862)
it was removed, this has no effect
2025-10-10 18:41:31 +01:00
Jelle Zijlstra ca44e4c45d Add __slots__ to third-party packages using stubdefaulter (#14619) 2025-08-21 15:38:13 -07:00
Sebastian Rittau aebefb1754 Remove support for pytype (#14463) 2025-07-27 11:47:37 +02:00
renovate[bot] 75d8c88ec5 Update most test/lint dependencies (#14354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2025-07-01 10:59:15 +01:00
Rogdham 78fc518ab8 3.14: PEP-784 compression except zstd (#13992) 2025-05-11 15:23:20 +02:00
Avasam 4265ee7c72 Enable Ruff flake8-use-pathlib (PTH) (#13795)
Port existing code to pathlib
2025-05-05 18:59:43 +02:00
Avasam 5c7fe07278 Run Black on *_pb2 files (#13930) 2025-05-05 15:22:59 +02:00
Avasam 5faa04038b Apply mypy-tests custom config to other mypy-based tests (#13825) 2025-04-28 12:24:26 +02:00
Avasam a045be8ed6 Import names from typing directly rather than importing module (#13761) 2025-04-12 19:10:09 +02:00
Alex Waygood d92a6449c2 Remove more Python 3.8 cruft (#13787) 2025-04-03 11:56:38 +01:00
Avasam 4b253d2932 Enable Ruff flake8-todos (TD) (#13748) 2025-04-03 07:43:54 +02:00
Avasam 616ca7db2c Enable Ruff groups we already pass (#13751) 2025-04-02 08:43:52 +02:00
Avasam aaf1e0313c Enable Ruff flake8-pie (PIE) (#13747) 2025-04-02 08:43:25 +02:00
Avasam eafa274f1b Enable Ruff PLW (Pylint Warning) (#13749) 2025-04-01 15:12:15 +02:00
Avasam df1206f3cb Enable Ruff flake8-use-pathlib (PTH) (autofix only) (#13750) 2025-04-01 13:27:33 +02:00
Avasam 83ee2a2dc6 Enable Ruff flake8-builtins (A) (#13729) 2025-03-28 14:11:50 -04:00
Avasam 8bc9a65367 Allow uv run to be used without --no-project (#13599) 2025-03-12 13:33:04 +01:00
Avasam 63e6ea8821 Enable Ruff PLE (Pylint Error) (#13305) 2025-03-04 12:11:32 +01:00
Avasam 6f98c59f93 Enable Ruff PLR (Pylint Refactor) (#13307) 2025-03-03 18:03:34 +01:00
Avasam cc206f760d Drop flake8-noqa and remove workarounds to work with Ruff (#13571) 2025-03-03 15:48:59 +01:00
Avasam 6d6e858e63 Enable Ruff PLC (Pylint Convention) (#13306) 2025-03-03 15:39:40 +01:00
Avasam 62feb28c29 Enable Ruff SIM (#13309) 2025-02-26 23:19:36 +01:00
Sebastian Rittau 915a348bfa Third party stubtest: Print time per distribution (#13547) 2025-02-26 21:44:10 +01:00
Sebastian Rittau 10ebc999ee Officially drop Python 3.8 support (#13386) 2025-01-10 15:06:22 +01:00
Avasam 33d1b169c1 Enable Ruff TRY (tryceratops) (#13359) 2025-01-03 00:42:49 +00:00
Avasam 9c959a7dd3 Enable Ruff D (pydocstyle) with pep257 convention (#13326)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-02 22:05:35 +00:00
Avasam 0cebf26ecd Enable some Ruff TC rules (flake8-type-checking) (#13333) 2025-01-02 19:04:53 +00:00
Avasam a540f78784 Enable Ruff EXE (flake8-executable) (#13346) 2025-01-02 18:34:05 +00:00
Avasam e02e7ad5da Enable Ruff ANN2 (flake8-annotations, autofixes only) (#13331) 2025-01-02 10:36:52 +00:00
Avasam 73ce98b5a3 Enable Ruff N (pep8-naming) on non-stubs (#13327) 2025-01-02 10:22:40 +00:00
Avasam 67568b5e19 Enable some Ruff FURB rules (#13310)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-01-02 10:10:58 +00:00
Avasam ebc9ff8718 Enable Ruff ARG (flake8-unsued-arguments) and remove unused arguments (#13334) 2024-12-29 17:21:19 -08:00
Avasam a2e4137f65 Remove redundant Bugbear disabling in stubs (#13308) 2024-12-29 17:10:18 -08:00
Avasam 2cdda12df7 Move RUF022+RUF023 ignores to stubs only and remove TODO (#13322)
Move RUF022+RUF023 to stubs only and remove TODO
2024-12-28 19:30:24 +00:00
Avasam 6c4d9eb5ab Enable Ruff YTT (#13314) 2024-12-27 12:07:18 +00:00
Avasam 773b493b2b Enable more PYI autofixes (#13315) 2024-12-26 21:15:18 -08:00
Avasam dde13fb91d Enable Ruff PGH rules (#13304) 2024-12-26 21:35:34 +00:00
Avasam 69e3eb8be6 Bump Ruff to 0.8.0, ignoring RUF022/RUF023 (#13090) 2024-11-25 18:27:01 +00:00
Avasam 055857c318 Clear up tool.ruff.lint.isort.extra-standard-library (#13070)
Clear up extra-standard-library
2024-11-22 13:58:32 -08:00
Sebastian Rittau 1fa4986f71 Move common utility functions to a common library (#12773) 2024-10-14 08:00:02 +02:00
Stephen Morton 39650b43b5 add _sqlite3 module (#11174)
This aligns with the implementation while giving greater fidelity
to runtime naming and inheritance

Related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141
2024-10-04 17:28:26 -07:00
Stephen Morton 4f37d8fff8 add _ssl module (#11155)
Really all I needed for fixing the inheritance was _ssl._SSLContext.
But then I needed all the other stuff in _ssl, and if I was doing that
I wanted to do a thorough job of it.

Motivation was originally related to https://github.com/python/typeshed/issues/3968 ,
but we're well beyond that now, really.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-10-01 20:10:51 -07:00
Stephen Morton 6bc1884577 follow implementation more closely in zoneinfo (#11189)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-10-01 19:49:01 -07:00
Avasam 89e0b691db Enable more Ruff PYI rules with autofixes (#12557) 2024-09-04 19:50:07 -04:00