You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be a post-red-knot issue (or even a uv issue), so happy to relocate this as needed.
One of the really powerful features which pants offers is the ability to leverage its dependency graph to only run tests/linting on files which are directly or indirectly impacted by changes. The multi-file (and presumably multi-package) analysis of red-knot plus the projects api of uv means that a lot of the components required to support this behaviour are being developed or are in place already.
Given how fast ruff is, this might seem unnecessary, but the real value here comes from being able to then leverage this using other tools like pytest to only run tests which are impacted by your changes.
Another point I'd note here is that pants does the dependency graph at the file level, but red-knot could enable this down to the function level to allow even more granular test selection.
The text was updated successfully, but these errors were encountered:
This may be a post-
red-knot
issue (or even auv
issue), so happy to relocate this as needed.One of the really powerful features which
pants
offers is the ability to leverage its dependency graph to only run tests/linting on files which are directly or indirectly impacted by changes. The multi-file (and presumably multi-package) analysis of red-knot plus the projects api ofuv
means that a lot of the components required to support this behaviour are being developed or are in place already.Copying pants' api for an example syntax:
Given how fast
ruff
is, this might seem unnecessary, but the real value here comes from being able to then leverage this using other tools likepytest
to only run tests which are impacted by your changes.Another point I'd note here is that
pants
does the dependency graph at the file level, butred-knot
could enable this down to the function level to allow even more granular test selection.The text was updated successfully, but these errors were encountered: