From bddfc5f8818c558707bda17b49f3702a88954c13 Mon Sep 17 00:00:00 2001 From: munechika-koyo Date: Thu, 16 Oct 2025 15:04:39 +0200 Subject: [PATCH] Add configuration for Ruff and Cython linting in pyproject.toml --- pyproject.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4849f0b5..f5c5a4b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,15 @@ [build-system] requires = ["setuptools>=62.3", "oldest-supported-numpy", "cython~=3.0", "raysect==0.8.1.*"] build-backend="setuptools.build_meta" + +[tool.ruff] +line-length = 120 +include = ["cherab/**/*.py", "demos/**/*.py"] + +[tool.ruff.lint] +ignore = [ + "F401", # ignore unused imports +] + +[tool.cython-lint] +max-line-length = 140