Commit Graph

86 Commits

Author SHA1 Message Date
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
Avasam
937270df0c Forbid extremely long line lengths in non-autogenerated stubs (#12537)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-08-18 16:03:34 -04:00
Ali Hamdan
4269f992f1 Use hyphenated options in black config in pyproject.toml (#12080) 2024-06-01 10:57:45 +01:00
Sebastian Rittau
425c69a6b9 Prefix utility modules with underscore (#11999) 2024-05-22 09:35:11 -04:00
Avasam
d26f125160 Move Ruff unsafe-fixes from pre-commit to config (#11783) 2024-04-18 18:44:51 +01:00
Avasam
12b9e48324 Update Ruff and enable F821 in stubs (#11771) 2024-04-17 09:50:58 -07:00
Sebastian Rittau
6d45cf6e18 Remove pyright version from pyproject.toml (#11622) 2024-03-17 14:09:15 +00:00
Sebastian Rittau
a8997209fb Install pyright from PyPI (#11575) 2024-03-16 14:14:31 +01:00
renovate[bot]
48106feed7 chore(deps): update pytype and pyright (#11595) 2024-03-14 09:28:09 +01:00
Avasam
1a942aa36d Replace Flake8 checks with Ruff (except for flake8-pyi) (#11496)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-03-10 14:35:45 +00: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
Alex Waygood
e05098681f make pyproject.toml valid TOML again (#11510) 2024-02-29 18:40:10 +00:00
Avasam
26e8c0002f Enable nearly all pyupgrade rules (except on test cases) (#11499)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-29 18:33:40 +00:00
Avasam
5cb2fe97a6 Replace flake8-bugbear with Ruff (#11500)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-29 18:20:31 +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
Stephen Morton
764532356a add _lsprof module (#11159)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-02-16 08:38:49 -08:00
Alex Waygood
bf58d62e74 Update test dependencies (#11361) 2024-02-05 00:53:21 +00:00
Sebastian Rittau
4e5f7a7142 Drop support for Python 3.7 (#11234) 2024-01-04 14:48:44 +01:00
Nikita Sobolev
8dfebc0117 Bump pyright to 1.1.342 (#11190) 2023-12-20 12:11:38 +01:00
Aliaksei Urbanski
0e5277c847 Remove duplicated items from ruff's exclude list (#11156) 2023-12-12 22:37:33 +00:00
Avasam
c8a81997ab Bump pyright to 1.1.339 (#11084) 2023-12-06 22:40:06 +00:00
Nikita Sobolev
18cd196109 Bump pyright to 1.1.334 (#10959)
https://github.com/microsoft/pyright/releases/tag/1.1.334
2023-10-31 23:21:52 -07:00
Ali Hamdan
6748816d43 Enable ruff's isort rules on files generated using mypy-protobuf (#10939)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-10-28 07:27:45 -07:00
Alex Waygood
5643362a1e Skip ruff's isort rules on files generated with mypy-protobuf (#10940) 2023-10-28 12:30:26 +01:00
Avasam
49ba409da8 Replace isort with Ruff (#10912) 2023-10-27 20:14:38 -07:00
Avasam
e477c67852 Check *_pb2.pyi files again (#10909) 2023-10-23 01:22:55 +01:00
Avasam
21fcd8960f Use Ruff for from __future__ import annotations checks (#10910) 2023-10-19 11:40:41 +02:00
Avasam
35873ec3d8 Doc: Use proper name capitalization of tooling (Ruff, Black, Flake8) (#10913) 2023-10-18 23:46:53 +01:00
Nikita Sobolev
d14c5f82c8 Bump pyright to 1.1.332 (#10904)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-18 10:09:50 +01:00
Alex Waygood
c47be697a3 locale: put all the imports together at the top (#10860) 2023-10-08 14:18:27 +02:00
Nikita Sobolev
64d6d96568 Bump pyright pin (#10858) 2023-10-08 08:21:19 +02:00
Ali Hamdan
c5dde1e720 Add optional requires_python field to third-party stubs metadata (#10724)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-24 18:39:12 +01:00
Nikita Sobolev
7ead6dffae Bump pyright to 1.1.328 (#10739)
https://github.com/microsoft/pyright/releases/tag/1.1.328
2023-09-20 08:37:19 +01:00
Alex Waygood
487e33112e Bump various test dependencies (#10693) 2023-09-11 14:18:48 +01:00
Nikita Sobolev
47d29e1d69 Bump pyright version (#10637)
Release https://github.com/microsoft/pyright/releases/tag/1.1.325
2023-08-30 08:57:05 +01:00
Nikita Sobolev
daf51f057b Bump pyright version (#10591)
Release: https://github.com/microsoft/pyright/releases/tag/1.1.323

Fix types-pika to work with the latest pyright version.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-08-16 10:18:41 +01:00
Nikita Sobolev
c326f2500b Bump pyright version (#10539)
Release: https://github.com/microsoft/pyright/releases/tag/1.1.320
2023-08-07 12:06:34 +01:00
Nikita Sobolev
21e8f7b02b Bump pyright version (#10510)
https://github.com/microsoft/pyright/releases/tag/1.1.319
2023-07-26 09:19:39 +01: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
Nikita Sobolev
797779d222 Bump pyright version to 1.1.318 (#10476) 2023-07-19 10:10:22 +02:00
Nikita Sobolev
3c9522bcfe Bump pyright version (#10454) 2023-07-13 09:08:27 -07:00
Alex Waygood
5ee46bd291 Bump various test dependencies (#10378) 2023-06-28 14:22:49 +01:00