pytest-dev / pytest-cov

Coverage plugin for pytest.
MIT License
1.76k stars 212 forks source link

PEP 621: Migrate settings from setup.cfg into pyproject.toml #586

Closed cclauss closed 1 year ago

cclauss commented 1 year ago

Migrate settings from setup.cfg into pyproject.toml using ini2toml to do the file conversion and running pyproject-fmt and then validate-pyproject in pre-commit to validate the results.

https://setuptools.pypa.io/en/latest/userguide/quickstart.html#basic-use

We recommend users expose as much as possible configuration in a more declarative way via the pyproject.toml or setup.cfg, and keep the setup.py minimal with only the dynamic parts (or even omit it completely if applicable).

Ran validate-pyproject to validate the results.

From validate-pyproject README:

With the approval of PEP 517 and PEP 518, the Python community shifted towards a strong focus on standardization for packaging software, which allows more freedom when choosing tools during development and make sure packages created using different technologies can interoperate without the need for custom installation procedures.

This shift became even more clear when PEP 621 was also approved, as a standardized way of specifying project metadata and dependencies.

validate-pyproject was born in this context, with the mission of validating pyproject.toml files, and making sure they are compliant with the standards and PEPs.

RonnyPfannschmidt commented 1 year ago

This conflicts with #551

Pierre-Sassoulas commented 1 year ago

Also why not wait for #584 to be merged so the issue with the .flake8 just does not exists anymore?

cclauss commented 1 year ago

Closing in favor of #551