Closed keiser1080 closed 4 months ago
Thanks for raising this! I see the issue; we have two different versions of ruff running simultaneously; one in the pre-commit hook and one through the virtual environment based upon the pyproject.toml
. One of them is a bit older, so it does not recognize the new configuration with [tool.ruff.lint]
yet.
We should remove one of the methods of using ruff, and make sure the one we keep uses the latest release of ruff. I dont have time to fix it now, but hopefully tomorrow :)
thanks!
lastest ruff v 0.5.1 seems to work if you add the keyword "check"
https://github.com/fpgmaas/cookiecutter-poetry/blob/8134f27936e41e2e27bbca5415030d5834cb953e/pyproject.toml#L31
ruff = "^0.5.1"
https://github.com/fpgmaas/cookiecutter-poetry/blob/8134f27936e41e2e27bbca5415030d5834cb953e/Makefile#L44
@poetry run ruff check hooks tests cookiecutter_poetry --config pyproject.toml
Thanks again, should be solved now!
Yes it work thanks
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior Linting with ruff
Additional context