run ruff pre-commit hook with pyproject configuration
The config in pyproject.toml wasn't fully taken into account, see https://github.com/astral-sh/ruff-pre-commit/issues/54
The config in pyproject.toml wasn't fully taken into account, see https://github.com/astral-sh/ruff-pre-commit/issues/54