Commit Graph

131 Commits

Author SHA1 Message Date
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
Alex Waygood
78d96cd17e Drop support for Python 2 (#8272) 2022-07-12 09:08:56 +02:00
Shantanu
e6482354dd Suggest updating mypy on stub removals (#8049)
Co-authored-by: hauntsaninja <>
2022-07-06 08:11:05 +01:00
Shantanu
64181e8dad stubtest: use separate table in METADATA.toml (#8096) 2022-06-19 00:43:24 -07:00
Sebastian Rittau
d8c0f25f0d Explain the no_longer_updated METADATA field (#8037) 2022-06-08 18:46:41 +02:00
Alex Waygood
a7ff433fc3 CONTRIBUTING.md: Fix broken link (#7994) 2022-05-30 16:36:06 -07:00
Alex Waygood
fa85367fc9 CONTRIBUTING: improve docs on running tests locally (#7992)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-05-30 15:44:13 -07:00
Sebastian Rittau
f7aa41245e Drop Python 2 support in third-party stubs (#7703) 2022-04-27 15:32:17 +03:00
Sebastian Rittau
c3907ab26b Remove Python 2 support from some third-party distributions (#7466)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-03-09 20:19:22 +02:00
Sebastian Rittau
24616d65d9 6-12 months -> six months (#7411)
"At least 6-12 months" is equivalent to "at least six months" and we
usually remove after six month, unless there are issues.
2022-03-01 17:37:53 -08:00
Sebastian Rittau
7a81bd41e9 Re-introduce the 'stubtest' key for third-party packages (#7351)
Some distributions can't be tested with stubtest for a variety of
reasons or because of bugs in stubtest. This key:

* let's us keep metadata about a distribution in one place,
* prevents us from modifying the scripts because of issues with a
  specific distribution, and
* will trigger tests if only the key is changed.
2022-02-22 15:59:27 +01:00
Martin Fischer
771813968a Fix broken link in CONTRIBUTING.md (#7282)
The section was moved in 3ba35f3552.
2022-02-19 03:50:20 -08:00
Akuli
62f22ef0cc CONTRIBUTING.md: remove duplicate info about how CI runs tests (#6910) 2022-01-13 08:01:20 -08:00
Akuli
11642f866c Recommend scripts/create_baseline_stubs.py in CONTRIBUTING.md (#6906) 2022-01-13 15:11:20 +01:00
Sebastian Rittau
14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
Sebastian Rittau
bb77f39b7c Add a 'stubtest' flag to METADATA.toml (#6687)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-25 17:02:57 +02:00
Alex Waygood
ae725c3f10 Add test to ensure certain names are not imported from typing_extensions (#6619) 2021-12-17 14:50:25 -08:00
Sebastian Rittau
206e1ae91b Remove 'py3' from requirements filename (#6509) 2021-12-06 12:59:04 +02:00
Alex Waygood
1c88ceeee9 Make example in CONTRIBUTING the same as in the stub` (#6461)
Looks like I made an argument in `datetime.pyi` positional-only a while back, and didn't realise the class was given as an example in `CONTRIBUTING.md`.
2021-11-30 13:35:44 -08:00
Joachim Jablon
3aa444b62f Remove deprecated pre-commit script (#6455) 2021-11-30 11:05:07 -08:00