Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented conformance tests for Enums chapter. #1764

Merged
merged 7 commits into from
Jun 4, 2024

Conversation

erictraut
Copy link
Collaborator

No description provided.

@erictraut erictraut requested a review from JelleZijlstra June 3, 2024 23:04
@erictraut
Copy link
Collaborator Author

Most of these tests are direct copies of the sample code in the spec. The only part that was a little tricky is that many of the type checker behaviors in the Enums chapter are optional, so many of the error conditions needed to be marked as # E?, and manual inspection was required to compile the "notes" section.

Copy link

cpython-cla-bot bot commented Jun 3, 2024

The following commit authors need to sign the Contributor License Agreement:

  • 66853113+pre-commit-ci[bot]@users.noreply.github.com

Click the button to sign:
CLA not signed

@erictraut
Copy link
Collaborator Author

@srittau, there appears to be a general problem with the pre-commit bot. The "CLA signing" rule thinks that it is a human who hasn't signed the CLA. Any thoughts on how we can fix this?

@JelleZijlstra
Copy link
Member

I guess that's a bug in the bot, cc @ambv. It should ignore the pre-commit bot's email address somehow. We probably haven't run into this before because the main other repo where we use the bot is CPython, which doesn't use pre-commit autofixers.

I'm an admin on this repo and I can merge through the CLA bot failure, so I'll merge this (after I've reviewed it, which might take some time).

conformance/tests/enums_expansion.py Outdated Show resolved Hide resolved
conformance/tests/enums_expansion.py Outdated Show resolved Hide resolved
conformance/tests/enums_members.py Outdated Show resolved Hide resolved
@erictraut
Copy link
Collaborator Author

@JelleZijlstra, thanks for the review. I incorporated changes based on your suggestions.

I'm not able to override the "CLA Signing" rule, so I can't merge this. If/when you feel it's ready, please merge.

@JelleZijlstra JelleZijlstra merged commit 84bed8b into python:main Jun 4, 2024
4 of 5 checks passed
@ambv
Copy link
Contributor

ambv commented Jun 4, 2024

I wouldn't call it a CLA bot bug, it's just missing configuration regarding this particular bot. We have plenty pre-allowed ones for cpython specifically. pre-commit-ci[bot] was just not one of them. This is now fixed, sorry for the trouble.

@erictraut erictraut deleted the enum_tests branch June 4, 2024 18:28
carljm added a commit to carljm/typing that referenced this pull request Jun 12, 2024
* main:
  Adds links to Python Discourse and ruff to typing.readthedocs.io (python#1774)
  Conformance tests: Mark pytype as passing annotations_coroutines (python#1771)
  Conformance tests: Fix manual scoring discrepancy for pyre (python#1770)
  Updated conformance test results for pyright 1.1.366. (python#1768)
  Spec: "Distributing type information": add links to PEPs 484 and 561; add a new anchor for easy intersphinx referencing (python#1767)
  Implemented conformance tests for Enums chapter. (python#1764)
  Fixed two bugs in the conformance test: (python#1763)
  Fixed two small typos in Enums chapter that I discovered when writing… (python#1762)
  Typo fix: Replace `TypeVar` with `TypeVarTuple` in a docs example (python#1760)
  Added draft chapter to typing spec for enumerations. (python#1759)
  List pip as an explicit dependency for the conformance tests (python#1757)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants