Commit Graph

150 Commits

Author SHA1 Message Date
Sebastian Rittau
a6fb689ff1 Update third-party removal policy (#12858) 2024-10-21 13:10:27 +02:00
Sebastian Rittau
055d0431ad Document the supported stdlib versions (#12731) 2024-10-11 13:48:54 +02:00
Sebastian Rittau
91a58b07cd Amend third-party removal policy (#12710)
Upstream annotations should have a similar standard as typeshed's.
2024-09-30 22:04:29 +02:00
Sebastian Rittau
7ce17a95f6 Document to stubtest_requirements field in the proper place. (#12707) 2024-09-30 13:46:48 +02:00
Avasam
d34ef50754 Optional pytype install on Windows (no CI) (#12669) 2024-09-17 10:58:31 +02:00
Sebastian Rittau
7c1378cc25 Document policy for future Python versions (#12592)
Closes: #12569
2024-08-25 18:24:08 +02:00
Avasam
ad56f205ac Update outdated labels and stub_uploader timing in CONTRIBUTING.md (#12540) 2024-08-17 21:17:32 +02:00
Sebastian Rittau
9eae1ae1a5 Require documenting Any uses (#12430) 2024-07-25 17:38:12 +02:00
Sebastian Rittau
7ed91bc2e7 Add _typeshed.MaybeNone as Any trick marker (#11815)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-04-23 17:13:25 -04:00
Sebastian Rittau
f4b89f5f86 Rename check_consistent.py to check_typeshed_structure.py (#11761) 2024-04-14 13:34:10 -07:00
Ali Hamdan
82d84c758c Improvements to the contributing guide (#11615) 2024-03-15 22:35:07 +00:00
Jelle Zijlstra
1a275547b4 CONTRIBUTING.md: Add PR closing policy (#11596)
Closes #11583

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: Avasam <samuel.06@hotmail.com>
2024-03-14 22:06:26 -07: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
5cb2fe97a6 Replace flake8-bugbear with Ruff (#11500)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-29 18:20:31 +00:00
Sebastian Rittau
65c154f5ff Document ignore_missing_stub in CONTRIBUTING.md (#11426)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-02-17 12:48:28 +00:00
Viicos
3195d86538 Update CONTRIBUTING.md to add full support for @deprecated (#11301) 2024-01-23 12:50:28 -08:00
Sebastian Rittau
87a695ab98 Update typing_extensions list in CONTRIBUTING (#11242) 2024-01-05 13:22:32 +01:00
Sebastian Rittau
4e5f7a7142 Drop support for Python 3.7 (#11234) 2024-01-04 14:48:44 +01:00
Avasam
9d8188c96d Document "the Any trick" (#11117) 2023-12-18 13:56:22 +01:00
Alex Waygood
01432805d9 Fix typos in docs and comments (#11064) 2023-11-23 14:55:58 +00:00
Jelle Zijlstra
5fd2e9bf61 CONTRIBUTING: Add @deprecated, other updates (#11005)
Fixes #11004.

I started out just documenting conventions with `@deprecated`, but
found some other things in need of updates.

- PEP 585 and 612 are now fully supported
- Add several other PEPs that we fully support
- Use updated links to PEPs
- Split off a few sections from the long "Conventions" section
- PEP 688 was accepted
2023-11-18 12:55:18 -08:00
Avasam
49ba409da8 Replace isort with Ruff (#10912) 2023-10-27 20:14:38 -07:00
Avasam
35873ec3d8 Doc: Use proper name capitalization of tooling (Ruff, Black, Flake8) (#10913) 2023-10-18 23:46:53 +01:00
Mikhail Samylov
d30bdc601d CONTRIBUTING.md: Avoid user mistake in the script; small fixes (#10765) 2023-09-25 12:44:06 +02:00
Sebastian Rittau
114949b5ad Note that Python 3.7 support is limited (#10601) 2023-08-21 13:39:45 +01:00
Alex Waygood
2887f60196 Use ruff, not pycln, for removing unused imports (#10498) 2023-07-22 12:14:27 +01: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
79e092e133 Add some ruff autofixes to CI (#10458) 2023-07-20 14:41:52 +02:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Ali Hamdan
3add7f0d76 Reference the stub_uploader issue discussing externals deps in the contributing guide (#10156)
Closes #10150
2023-05-10 08:32:00 +02:00
Sebastian Rittau
565a1a07ad Remove note about Optional still being necessary sometimes (#9687) 2023-02-07 03:03:22 -08:00
Alex Waygood
4afda1dbe3 Rework CONTRIBUTING.md: simple parameter defaults are now accepted and encouraged (#9665) 2023-02-03 11:59:07 +00:00
Sebastian Rittau
cd64563dd8 Rework the "Incomplete stubs" section (#9548)
Also move it to the "Conventions" section due its scope change.

Closes: #8955
2023-02-03 11:58:25 +01:00
Avasam
70025c3723 Support third-party stub external dependencies in pytype (#9449)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-04 19:32:23 +00:00
Avasam
0edcfa13ad Add syntax highlight to all shell code blocks (#9445) 2023-01-02 23:55:25 +00:00
Avasam
23ac9bff19 Check for unused pyright: ignore and differentiate from mypy ignores (#9397) 2022-12-28 10:44:29 +00:00
Avasam
7050c1d907 Add support for Homebrew and Chocolatey (#9187) 2022-11-24 07:17:17 +00:00
Sebastian Rittau
02942b710c Support "stub_distribution" and "upload" metadata fields (#9256) 2022-11-23 13:05:13 +01:00
Alex Waygood
263427f438 Bump test dependencies; improve pycln config (#9197) 2022-11-14 11:58:45 -08:00
Nikita Sobolev
9cd9f6f6e0 Add the ability to run third-party stubtest on Windows or MacOS when needed (#8923)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-11 13:40:50 +00:00
Jelle Zijlstra
b5c4580d52 CONTRIBUTING: Note no bytearray promotion (#9005)
Closes #9001
2022-10-28 13:48:59 -07:00
Nikita Sobolev
208c09044c Fix incomplete stubs wording in CONTRIBUTING.md (#8906) 2022-10-16 10:51:07 +01:00
Nikita Sobolev
ce4668a132 Use Incomplete instead of Any in __getattr__ (#8903) 2022-10-15 18:54:21 +01:00
Samuel T
bcb8384e2f Removed outdated mypy exceptions in CONTRIBUTING (#8668)
Closes #8667
2022-09-02 09:09:35 +02:00
Alex Waygood
b417d5796d Run flake8-noqa in CI (#8641) 2022-08-29 21:06:47 +01:00
Alex Waygood
4414246a15 Clean up a few Python 2 remnants (#8452) 2022-07-31 19:19:18 +01:00
Kevin Kirsche
0a31779909 Update CONTRIBUTING.md as TypeAlias is now allowed (#8397) 2022-07-25 12:53:33 -07:00
Nikita Sobolev
73de76c033 Change Stub versioning wording in CONTRIBUTING.md (#8365) 2022-07-22 11:31:51 +02:00
Alex Waygood
35616b439f Run pycln as a pre-commit hook in CI (#8304) 2022-07-18 09:27:28 +02:00
Shantanu
5ef20e8021 Use packaging to parse versions (#8314)
packaging is the standard tool for dealing with versions and
requirements. This allows us to easily support all PEP 508 specs.
packaging also has good error messages, so I don't create our own here.
This lets us get rid of our handrolled half parser and sanity checks.
I kept the whitespace consistency check, since that's just a formatting
lint and isn't testing the correctness of parsing (which we now
definitely do correctly).
2022-07-17 12:35:32 -07:00