Consider watchfiles
and other minor changes to tasks.json
#39
blakeNaccarato
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
@blakeNaccarato thanks for the interest for the projects. Yeah, the ptw runner is kind of mess at the moment, did not pay attention too much yet. I have not decided to whether keep that ptw bg task there at all. It might also conflict the VScode's own test runner with the coverage info... I'll have a look at your diff. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I stumbled upon your
.vscode/tasks.json
implementation while searching for creative uses of$python
as abase
problemMatcher
. It's a pretty cool use-case, I didn't know you could use the problem matcher that way! Upon trying a variation of it in one of my projects I noticed the following:ptw
stumbles on valid syntax inpyproject.toml
via its use ofconfigparser
. Swappingpytest-watch
forwatchfiles
fixes thisowner
toexternal
inproblemMatcher
entries causes reported issues to persist/stale in the VSCode Problems pane, even after fixing the problem. Removing"owner": "external"
fixes thisI figured I'd contribute the changes back to a fork/branch of your repo, in case you're interested in a PR. I didn't want to actually submit the PR unsolicited in case your existing solution is working fine in your application, or if there's an edge-case I'm missing, so I figured I'd open a discussion about it.
See the diff at main...blakeNaccarato:django-ninja-crudl:task.
Beta Was this translation helpful? Give feedback.
All reactions