1# Assume Python 3.9. 2target-version = "py39" 3 4# Assume several lldb and xnu-specific globals are built-in. 5builtins = ["lldb", "kern", "cast", "addressof"] 6 7# Exclude a variety of commonly ignored directories. 8exclude = [ 9 ".eggs", 10 ".egg-info", 11 ".ruff_cache", 12 "__pycache__", 13 "dist", 14] 15 16[lint] 17# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. 18select = ["E", "F"] 19# Disable ambiguous variable names and line lengths. 20ignore = ["E741", "E501"] 21 22# Allow autofix for all enabled rules (when `--fix`) is provided. 23fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"] 24unfixable = [] 25 26# Allow unused variables when underscore-prefixed. 27dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" 28 29# Unlike Flake8, default to a complexity level of 10. 30mccabe.max-complexity = 10 31