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