Skip to content

Partial Implementation of fixing the typing of tests.#2563

Open
mplatypus wants to merge 37 commits intohikari-py:masterfrom
mplatypus:fix/partial-typing-tests
Open

Partial Implementation of fixing the typing of tests.#2563
mplatypus wants to merge 37 commits intohikari-py:masterfrom
mplatypus:fix/partial-typing-tests

Conversation

@mplatypus
Copy link
Copy Markdown
Contributor

Summary

This a partial implementation of the pull request 2213.

The goal of this is to make the future implementation much easier, due to the fact that "most" of the stuff has been completed.

Checklist

  • I have run nox and all the pipelines have passed.
  • I have made unittests according to the code I have added/modified/deleted.

mplatypus and others added 30 commits March 4, 2025 00:15
…e to the fact that typing is not possible until the usages are typed.
Also remove all uses of contextlib.ExitStack in tests where simple
'with' chained blocks work

Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
Signed-off-by: davfsa <davfsa@gmail.com>
@mplatypus mplatypus requested a review from davfsa as a code owner October 10, 2025 11:16
@mplatypus mplatypus added the skip-fragment-check Skip fragment checks for this PR as it doesnt need one label Oct 10, 2025
@davfsa davfsa added the testing Improvements or additions to tests label Oct 10, 2025
Copy link
Copy Markdown
Member

@davfsa davfsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to really trust the testing structure here and give it a good old 👍 .

Hopefully we can keep working on this in the future, but looks good for now :)

Comment thread .github/workflows/ci.yml
@@ -64,7 +64,7 @@ jobs:
include-hidden-files: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets revert the changes in this file for now.

We can enable it in the future when it doesnt cause the pipeline to be marked as failed

Comment thread pipelines/nox.py

# Default sessions should be defined here
nox.options.sessions = ["reformat-code", "codespell", "pytest", "ruff", "slotscheck", "mypy", "verify-types"]
nox.options.sessions = [
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont want it to run by default if its not something that is expected to pass as of right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-fragment-check Skip fragment checks for this PR as it doesnt need one testing Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants