overrides icon indicating copy to clipboard operation
overrides copied to clipboard

Docs request: IDE linting guidance

Open aaronsteers opened this issue 1 year ago • 1 comments

I love that this library exists but I'm struggling to put it into practice.

As of now, my linter (mypy and ruff, on vs code) don't check or warn about incorrect annotations and behaviors, so I'm getting all failures at once when I try to run test discovery in pytest.

Can I directly check "correctness" while writing, via a linter?

If anyone can point me in the right direction, and if it would be helpful for other new users, I'm happy to submit a PR with the guidance here. :)

Also - and perhaps just as important - I'm seeing failures during test discovery, which is a horrible time to fail because it breaks the IDE's test UI. Can I defer this when discovering my tests (at minimum) and then get them at runtime?

aaronsteers avatar Dec 21 '23 18:12 aaronsteers

Looks like there's an open feature request for this in Ruff here:

  • https://github.com/astral-sh/ruff/issues/6844

aaronsteers avatar Dec 21 '23 19:12 aaronsteers