diff --git a/Makefile b/Makefile index 3569e6bf3..5e359a0cc 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ documentation: format: ruff format . + ruff check . install: pip install -e .[dev] diff --git a/changelog.d/add-ruff-linting.added.md b/changelog.d/add-ruff-linting.added.md new file mode 100644 index 000000000..b16e7d09f --- /dev/null +++ b/changelog.d/add-ruff-linting.added.md @@ -0,0 +1 @@ +Added ruff check linting configuration with E and F rules to catch common Python errors. diff --git a/pyproject.toml b/pyproject.toml index c62a631c3..8e48c8c34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,3 +94,7 @@ showcontent = true [tool.ruff] line-length = 88 + +[tool.ruff.lint] +select = ["E", "F"] +ignore = ["E402", "E501", "E712", "E713", "E721", "E722", "E741", "F401", "F402", "F403", "F405", "F541", "F811", "F821", "F841"]