See More

# Ruff configuration # See More: https://docs.astral.sh/ruff/configuration/ # # NOTE: relative paths in this file are resolved from afterpython/, not the # project root, e.g. use "../tests/*" to target the project's tests/ folder. # where your own (first-party) packages live, used by import sorting: # ".." = project root (flat layout), "../src" = src layout src = ["..", "../src"] line-length = 88 target-version = "py312" [lint] # ruff default rules: select = [ "E4", # import-related errors (e.g., undefined names in imports) "E7", # statement errors (e.g., multiple statements on one line) "E9", # runtime errors (e.g., syntax errors, indentation issues) "F", # Pyflakes - logical errors (e.g., unused imports, undefined variables) ] # ignored rules: ignore = [ "E501", # line too long "N816", # pep8-naming - allow mixedCase variable names in function scope ] # extended rules: extend-select = [ "I", # isort - import sorting "UP", # pyupgrade - upgrade syntax for newer Python "B", # flake8-bugbear - find likely bugs "SIM", # flake8-simplify - simplify code # "C90", # mccabe - complexity checking "N", # pep8-naming - enforce naming conventions "RUF", # ruff-specific rules ] [format] quote-style = "double" # double quotes for strings indent-style = "space" # indent with spaces, rather than tabs.