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
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
Drop the poetry update from make prep. Instead do the update separately every once in a while. I suggest this because with more contributors just about every PR will be dealing with merge conflicts otherwise.
The search word "mock" yielded 0 results in the docs. I assume from unittest import mock is the way to go for most users? Maybe add a note to the docs?
Linters don't appear to be running in CI? I'd suggest adding to automate parts of the review process (maybe pre-commit.ci to apply fixes to the PRs automatically?) Ok I found out this is already configured, haha
PS. pytest adds quite a lot of overhead running tests. Would be great to have a design goal to not end up in the same state.
The text was updated successfully, but these errors were encountered:
Thanks, I appreciate that! I'll go through your suggestions one by one:
mypy type checking
This would be great and was an issue I've been meaning to create myself. It would be more than just adding a mypy step though, since Ward will currently fail type checking. So far they've been used quite loosely and won't be 100% accurate.
distribute type annotations via PEP561
Agreed!
pytest has pytest-cov, here it seems coverage run -m ward is the way to go. I'd maybe add a note about that to the docs.
Yeah, there are a few areas I'd like to add to the docs include mocking, measuring code coverage, using ward on CI, and comparison between ward and pytest.
I find myself using tmp_path and capsys by far the most in pytest.
Agreed on both of these. There are a couple of places in the Ward suite where we use temporary dirs and tmp_path would've been useful. Let's use the existing issue to track this.
Read the config using a TOML v1.0.0 compatible parser
I wasn't aware of that issue! After looking at Tomli, I'd be happy to accept a PR which switches Ward over to use it.
Drop the poetry update from make prep
Agree :)
The search word "mock" yielded 0 results in the docs.
Answered above
I'll create issues for each of the points above where it makes sense.
Hi @darrenburns, thanks for this project, seems pretty awesome just based on skimming through the docs and repository.
Pytest is great, but Ward seems to fix some of the things that did not feel that great to me. Some things I really like here are
--order random
includedThere's a few things I could contribute to, but would need to know if a PR is welcome:
coverage run -m ward
is the way to go. I'd maybe add a note about that to the docs.tmp_path
andcapsys
by far the most in pytest.poetry update
frommake prep
. Instead do the update separately every once in a while. I suggest this because with more contributors just about every PR will be dealing with merge conflicts otherwise.from unittest import mock
is the way to go for most users? Maybe add a note to the docs?Linters don't appear to be running in CI? I'd suggest adding to automate parts of the review process (maybe pre-commit.ci to apply fixes to the PRs automatically?)Ok I found out this is already configured, hahaPS. pytest adds quite a lot of overhead running tests. Would be great to have a design goal to not end up in the same state.
The text was updated successfully, but these errors were encountered: