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
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