text: fix pytest config by aucampia · Pull Request #1846 · RDFLib/rdflib (original) (raw)
Summary of changes
pytest was using config from tox.ini
preferentially and ignoring config
from setup.cfg
, as a side-effect doctests were not running on
code/docstrings in rdflib/
.
The reason why some pytest config was in tox.ini
instead of setup.cfg
was because of these issues:
- CLI parses unrelated config files and then crashes pypa/pip#5182
- Cannot setup log_format in setup.cfg, because of InterpolationMissingOptionError` pytest-dev/pytest#3062
As a compromise to fix this I have opted for moving all pytest config topyproject.toml
:
This seems sensible as pyproject.toml
is standarized by PEPs and
eventually most things from setup.cfg
will end up in there anyway.
Also:
- remove the pytest ignore on
test/translate_algebra
as tests in there
have been running and passing for some time. - fixed path to test data in
rdflib/plugins/parsers/nquads.py
.
Checklist
- Checked that there aren't other open pull requests for
the same change. - Checked that all tests and type checking passes.
- Considered granting push permissions to the PR branch,
so maintainers can fix minor issues and keep your PR up to date.