Skip to content

Conversation

@schloerke
Copy link
Contributor

Related:

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

  • Re lated issue # NA
  • Closes # NA

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

The default pytest command does cover some tests, but others are ran under default settings. By integrating the make commands, py-shiny can update the internal script as things change without need for updates to narwhals.

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

nice, thanks @schloerke !

is there a way to keep the mypy command tested, to check we don't regress the type annotations?

@schloerke
Copy link
Contributor Author

Good catch! I lost it in the shuffle yesterday.

The mypy check within py-shiny's repo is only there to test that it can run (because mypy sometimes doesn't like commented code)... not to find type errors. We do have type coverage using pyright that is tested within make check (along with other linting checks).

I've changed py-shiny's make narwhals-test-integration command to perform both type checking and test all narwhals related unit tests in posit-dev/py-shiny#1733. (Waiting for CI to auto merge in the next few mins)

@schloerke
Copy link
Contributor Author

schloerke commented Oct 11, 2024

Working type check: https://github.com/narwhals-dev/narwhals/actions/runs/11293892161/job/31413093004?pr=1161#step:10:48

-------- Checking types with pyright --------
pyright
0 errors, 0 warnings, 0 informations 

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

wow amazing, thanks @schloerke !

@MarcoGorelli MarcoGorelli merged commit b056530 into narwhals-dev:main Oct 12, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants