/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Tools/build/.ruff.toml
44 строки
1 KB
Petr Viktorin
gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055)
05 май 2026, 10:18
Не верифицирован
05 май 2026, 10:18
508b498
Код
Авторство
О чём код?
extend = "../../.ruff.toml" # Inherit the project-wide settings [per-file-target-version] "deepfreeze.py" = "py311" # requires `code.co_exceptiontable` "stable_abi.py" = "py311" # requires 'tomllib' [format] preview = true docstring-code-format = true [lint] select = [ "C4", # flake8-comprehensions "E", # pycodestyle "F", # pyflakes "I", # isort "ISC", # flake8-implicit-str-concat "LOG", # flake8-logging "PGH", # pygrep-hooks "PT", # flake8-pytest-style "PYI", # flake8-pyi "RUF100", # Ban unused `# noqa` comments "UP", # pyupgrade "W", # pycodestyle "YTT", # flake8-2020 ] ignore = [ "E501", # Line too long "F541", # f-string without any placeholders "PYI024", # Use `typing.NamedTuple` instead of `collections.namedtuple` "PYI025", # Use `from collections.abc import Set as AbstractSet` ] [lint.per-file-ignores] "{check_extension_modules,freeze_modules}.py" = [ "UP031", # Use format specifiers instead of percent format ] "generate_{re_casefix,sre_constants,token}.py" = [ "UP031", # Use format specifiers instead of percent format ] "generate_slots.py" = [ "I001", # Import block is un-sorted "ISC003", # Explicitly concatenated string ]