[tool.isort] line_length = 120 skip_glob = [ "*/external_libs/*", "*/lightgbm-python/*" ] [tool.mypy] exclude = 'build/*|compile/*|docs/*|examples/*|external_libs/*|lightgbm-python/*|tests/*' ignore_missing_imports = true [tool.ruff] exclude = [ "build", "compile", "docs", "external_libs", "lightgbm-python", "setup.py" ] ignore = [ # (pydocstyle) Missing docstring in magic method "D105", # (pycodestyle) Line too long "E501" ] select = [ # flake8-bugbear "B", # flake8-comprehensions "C4", # pydocstyle "D", # pycodestyle "E", # pyflakes "F" ] # this should be set to the oldest version of python LightGBM supports target-version = "py37" [tool.ruff.per-file-ignores] "examples/*" = [ # pydocstyle "D" ] "tests/*" = [ # (flake8-bugbear) Found useless expression "B018", # pydocstyle "D" ] [tool.ruff.pydocstyle] convention = "numpy"