Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Second round of updates, split out to keep PRs reasonable size
Drop
py
dependencyThis package is in maintenance only mode and only had two uses. Replace
their use with the
tmp_path
fixture as suggested in the docs[1]Link: https://docs.pytest.org/en/8.3.x/reference/reference.html#tmpdir [1]
Require Python >=3.8.1
The motivation here is to bring in a new version of
flake8
, which hassimilar version constraints[1]. Python 3.8.0 is very old (and Python 3.8
is EoL anyway)
Link: PyCQA/flake8@aa002ee [1]
Update
pytest
There was one new error:
Fix this following the docs[1]
Link: https://docs.pytest.org/en/8.3.x/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests [1]
Update
black
Also some fixes for 5b74aba
--check
flag to the lint scriptUpdate
flake8
This required fixes an error in the config (I also updated the relevant
link, the old one would 404):
And some errors in the code:
The second test conflicted with
mypy
, sinceDict
was only used incommented annotations, to make them both happy move one of these
annotations out of a comment (in the future we should probably move all
such annotations out of comments)
Update
hypothesis
This required addressing some errors from
mypy
: