Commit Graph

89 Commits

Author SHA1 Message Date
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
Sebastian Rittau
77810277d5 Recommend to use mypy error codes if applicable (#6305) 2021-11-17 21:58:05 -08:00
Alex Waygood
4b3a8a8790 Improve support for running tests on Windows (#6284) 2021-11-12 17:09:20 +01:00
Shantanu
bf92378722 Bump typed-ast version, recommend Python 3.8 for tests (#6278) 2021-11-12 02:53:42 -08:00
Sebastian Rittau
bb24e77404 Update remaining versions for third-party stubs (#6094)
Also remove the python2 markers of packages that don't list Python 2
as supported in the latest version.

Don't special case version '0.1'

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-10-12 12:30:45 +02:00
Sebastian Rittau
9f86972350 Add star to all non-0.1 versions (#6146) 2021-10-11 13:41:19 -07:00
Sebastian Rittau
46fc031ee7 Allow third-party versions to end in asterisk (#6129)
This is a first step towards #6095, where x.y and x.y.* are treated as
equivalent. The next step is to update existing versions to use x.y.*
where applicable and then treat x.y differently.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-10-11 00:46:18 +02:00
Sebastian Rittau
0506182348 Allow three-component third-party versions (#5995)
Closes: #5992
2021-09-18 20:08:51 -07:00
Sebastian Rittau
8e0e13a2d5 Commit messages for stubs are now used as changelog (#5950) 2021-08-28 12:11:22 -07:00
Sebastian Rittau
9b366daaec Explain adding new third-party stubs (#5951)
Closes: #5438
2021-08-23 20:47:54 -07:00
Sebastian Rittau
5f2e117bba CONTRIBUTING: Use PEP 604 syntax (#5925)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-08-14 20:48:40 -07:00
Akuli
c0e2346346 new union syntax in CONTRIBUTING.md (#5879) 2021-08-08 15:48:56 +02:00
Sebastian Rittau
ad3f0c8e34 Allow non-types dependencies (#5769)
Remove the check in check_consistency that ensures that only other
type packages from typeshed are being depended on. Instead, add an
explanation to CONTRIBUTING that spells out the requirements. This
adds a higher, but reasonable burden on maintainers to check the
dependencies manually.

Part of #5768
2021-07-14 14:29:53 +02:00
Jelle Zijlstra
14d7431ff1 Recommend Self in CONTRIBUTING.md (#5699)
Part of #5676.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-06-27 23:17:28 +03:00
Akuli
11b99e1141 @python2 nits (#5672)
* tiny tests/mypy_test.py cleanup

* try to make CONTRIBUTING.md less confusing
2021-06-21 21:42:45 +03:00
Sebastian Rittau
68dc2d132b Move Python 2-only stubs to @python2 directory (#5660) 2021-06-21 11:28:25 -07:00
Jelle Zijlstra
04627bfb83 Update PEP 612 status in CONTRIBUTING.md (#5635)
And add a new "Partially supported" section
2021-06-14 17:20:27 +02:00
Sebastian Rittau
d143a5d04b Metadata versions field now reflects the latest supported version (#5600) 2021-06-09 20:30:44 +02:00
Jelle Zijlstra
bfc83c365a Use PEP 604 in types.pyi (#5553) 2021-05-29 11:09:50 -07:00
scaramallion
a32d24cae0 Use __new__ for datetime.time (#5530) 2021-05-26 11:00:37 +03:00
Jelle Zijlstra
02be4b5da2 Add section on supported type-system features (#5479) 2021-05-17 09:30:45 +02:00
Sebastian Rittau
453963b536 Describe METADATA.toml files (#5436) 2021-05-16 22:26:49 +02:00
Sebastian Rittau
5b739e0ccb Split stdlib into Python 2 and 3 versions (#5442)
All new files in stdlib/@python2 are straight copies of the
corresponding files in stdlib.
2021-05-14 12:04:12 -07:00
Sebastian Rittau
3ba35f3552 Split the tests section, extend ToC (#5433)
Move and consolidate venv setup and running isort/black/flake8 into
separate sections and link those sections from the ToC. Also extend
those sections slightly.

Move the tests section into a separate file.

Make venv name in pre-commit match name in CONTRIBUTING.
2021-05-13 15:41:04 +02:00
Sebastian Rittau
d98fdd934c Move VERSIONS description to file itself (#5434) 2021-05-13 06:14:44 -07:00
Sebastian Rittau
a34e5a36a8 Describe third-party removal process (#5435) 2021-05-13 06:08:55 -07:00
Sebastian Rittau
b1577ad1cb Rework README and CONTRIBUTING (#5429)
This shuffles sections around between README.md and CONTRIBUTING.md. CONTRIBUTING now contains information pertaining to opening PRs, README all other information. I have also moved the list of maintainers to a separate file.

I have kept most information intact for now, with two main exceptions:

I removed duplicated information.
For brevity's sake, I trimmed some explanations from the section about version checks.
I have restructured the CONTRIBUTING file to follow the order of the introductory "contribution process at a glance" section. This now serves as a bit of a table of contents.

Closes: #5422
2021-05-12 16:25:47 -07:00
Akuli
4b39a0fe43 CONTRIBUTING.md: explicitly avoid --amend (#5371)
* tell not to use --amend

* clarify how pull requests show up in git history
2021-05-07 23:52:26 +03:00
Akuli
0bfb28b0b6 do not require running tests locally (#5356) 2021-05-06 14:33:53 -07:00
Jelle Zijlstra
fc0db5f2b6 Add a suggestion to CONTRIBUTING.md (#5205)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2021-04-11 06:50:08 -07:00
Sebastian Rittau
2b9cd1e342 Suggest splitting Python 2 stubs (#5189)
Closes: #5049
2021-04-08 14:40:46 +02:00
Akuli
00da323113 sort contributor list by last name (#5158) 2021-03-30 20:27:09 +03:00
Akuli
c9b1f988a5 CONTRIBUTING.md: core developer --> maintainer (#5157)
* CONTRIBUTING.md: core developer --> maintainer
2021-03-30 20:02:32 +03:00
Sebastian Rittau
1906b98a4f Add @Akuli as maintainer (#5156)
* Add @Akuli as maintainer

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-03-30 19:36:21 +03:00
Sebastian Rittau
c21329b68a Recommend using PEP 585 (#5055)
* Remove conventions enforced by black

Remove old note about optional default arguments (now part of
PEP 484 and enforced by CI)

* Recommend to use PEP 585

Cf. #4820

* Try out using collections.abc

* Reference mypy bug
2021-02-23 16:41:31 -08:00
Ivan Levkivskyi
e70d06962a Update documentation to better reflect new directory structure. (#4976)
See #2491 for previous discussion.

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-28 09:09:29 +00:00
Jon Dufresne
dc80863254 Update isort URL to new location: https://github.com/PyCQA/isort (#4841) 2020-12-19 22:15:09 -05:00
Sebastian Rittau
4586ed9adc Require black and isort for contributions (#3329)
* Add explanation to CONTRIBUTNG.md
* Add sample pre-commit script
* Check for correctly formatted files in CI

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2020-06-28 15:28:28 -07:00
Sebastian Rittau
ef74bee249 Protocol naming guidelines (#4229)
Closes: #4174
2020-06-14 17:00:19 +02:00
Mikhail Golubev
231998a0a1 Fix a typo in the section about type hinting context managers (#4185) 2020-06-05 08:43:43 -07:00
Sebastian Rittau
b2b397c5ce Add @CraftSpider and @hauntsaninja as maintainers (#4138) 2020-05-28 16:34:45 -07:00
Sebastian Rittau
adafaf1964 Add review guidlines (#4132)
Closes: #3448
2020-05-28 15:18:05 +02:00
Sebastian Rittau
885c2fd65e Fix example code (#3592) 2020-01-08 09:52:23 -08:00