Commit Graph

3 Commits

Author SHA1 Message Date
Dimitri Papadopoulos
57d2691713 Revert replacement of flake8 with ruff
Start with reverting parts of commit 26be794 in #629 related to config
and CI jobs.
2024-02-02 10:05:14 +01:00
Dimitri Papadopoulos
d1b0eeacb6 build: Replace flake8 with ruff
Add isort (I) rules to the default set of ruff rules, as a replacement
for flake8-import-order.
2024-01-08 07:27:06 +01:00
Adrien Vergé
15eafeb80a build: Migrate from setup.py to pyproject.toml
Using `setup.py` is deprecated and the new recommanded way is to declare
a `pyproject.toml` file (see PEP 517 [^1]).

This commit proposes to use setuptools to achieve that, because
setuptools is already used by yamllint, is standard and referenced by
the official Python packaging documentation [^2], and seems to be the
most lightweight solution. An alternative could have been to use Poetry,
see the dedicated pull request and discussion [^3].

For some period, the `setup.py` file will be kept (although almost
empty), to allow old tools versions to keep working.

Closes https://github.com/adrienverge/yamllint/issues/509.

[^1]: https://peps.python.org/pep-0517/
[^2]: https://packaging.python.org/en/latest/tutorials/installing-packages/
[^3]: https://github.com/adrienverge/yamllint/pull/557
2023-04-21 14:15:53 +02:00