| [project] | |
| name = 'emsdk' | |
| requires-python = ">=3.10" | |
| [tool.ruff] | |
| preview = true | |
| line-length = 160 | |
| lint.select = [ | |
| "ARG", | |
| "ASYNC", | |
| "B", | |
| "C4", | |
| "C90", | |
| "COM", | |
| "E", | |
| "F", | |
| "I", | |
| "PERF", | |
| "PIE", | |
| "PL", | |
| "UP", | |
| "W", | |
| "RUF", | |
| "YTT", | |
| ] | |
| lint.external = [ "D" ] | |
| lint.ignore = [ | |
| "assert-false", # See https://github.com/PyCQA/flake8-bugbear/issues/66 | |
| "module-import-not-at-top-of-file", | |
| "try-except-in-loop", | |
| "import-outside-top-level", | |
| "too-many-public-methods", | |
| "too-many-statements", | |
| "too-many-nested-blocks", | |
| "collapsible-else-if", | |
| "no-self-use", | |
| "global-statement", | |
| "too-many-locals", | |
| "subprocess-run-without-check", | |
| "unspecified-encoding", | |
| "unraw-re-pattern", # https://docs.astral.sh/ruff/rules/unraw-re-pattern/ | |
| "too-many-statements-in-try-clause", | |
| ] | |
| lint.mccabe.max-complexity = 41 # Recommended: 10 | |
| lint.pylint.allow-magic-value-types = [ "int", "str" ] | |
| lint.pylint.max-branches = 29 # Recommended: 12 |