| # SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project | |
| # SPDX-FileType: SOURCE | |
| # SPDX-License-Identifier: Apache-2.0 | |
| [tool.ruff] | |
| line-length = 79 | |
| indent-width = 4 | |
| target-version = "py310" | |
| [tool.ruff.format] | |
| quote-style = "double" | |
| indent-style = "space" | |
| skip-magic-trailing-comma = false | |
| line-ending = "auto" | |
| docstring-code-format = true | |
| [tool.ruff.lint.mccabe] | |
| # Flag errors (`C901`) whenever the complexity level exceeds 5. Default is 10. | |
| # We should aim to gradually reduce this to 10. | |
| max-complexity = 40 | |