falconry / falcon

The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
https://falcon.readthedocs.io/en/stable/
Apache License 2.0
9.51k stars 937 forks source link

Add default `testpaths` to `pytest`'s config #2082

Closed vytas7 closed 2 years ago

vytas7 commented 2 years ago

Some of our users/packagers have expressed a wish to be able to run pytest without any parameters. Otherwise pytest seems to pick all tests, including tutorials and what not.

Add testpaths = tests to our configs.

While at it, maybe we should consolidate these configs inside pyproject.toml, as opposed to setup.cfg? The pytest docs state that

Usage of setup.cfg is not recommended unless for very simple use cases. .cfg files use a different parser than pytest.ini and tox.ini which might cause hard to track down problems. When possible, it is recommended to use the latter files, or pyproject.toml, to hold your pytest configuration.