/
talehunter
/
python_for_bmstu_students
Обзор
Документация
Войти
/
talehunter
/
python_for_bmstu_students
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pyproject.toml
111 строк
2 KB
Zaynulla Zhumaev
* pyproject.toml: Ruff ignore TRY, EM102;
13 ноя 2025, 20:17
13 ноя 2025, 20:17
0851777
Код
Авторство
О чём код?
[tool.pytest.ini_options] pythonpath = ["satellite_model", "satellite_model/src", "lessons", "dz"] filterwarnings = [ "ignore:invalid value encountered in:RuntimeWarning:", "ignore:RepresentationMixin:DeprecationWarning", ] [tool.ruff] # Exclude a variety of commonly ignored directories. exclude = [ "__pypackages__", "_build", ".bzr", ".direnv", ".eggs", ".git-rewrite", ".git", ".git", ".hg", ".ipynb_checkpoints", ".mypy_cache", ".nox", ".pants.d", ".pyenv", ".pytest_cache", ".pytest_cache", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", ".vscode", ".vscode", "buck-out", "build", "dist", "node_modules", "site-packages", "venv", # FIXME вернуть проверку папок после исправления всех ошибок "dz/old/", "lessons/", "satellite_model/", "utils/", ] # Same as Black. line-length = 88 indent-width = 4 target-version = "py312" [tool.ruff.format] # Like Black, use double quotes for strings. quote-style = "double" # Like Black, indent with spaces, rather than tabs. indent-style = "space" # Like Black, respect magic trailing commas. skip-magic-trailing-comma = false # Like Black, automatically detect the appropriate line ending. line-ending = "auto" [tool.ruff.lint] select = ["ALL"] ignore = [ "COM812", "D", "DTZ005", "FIX", "INP001", "ISC001", "Q", "RUF001", "RUF002", "RUF003", "S311", "S608", "T201", "TD", "TRY", "EM102", ] extend-select = ["FIX001", "TD005", "TD006"] [tool.ruff.lint.isort] # Поместить свои библиотеки в отдельный третий блок (1й - стандартные, 2й - # устанавливаемые) known-first-party = [ "adcs", "ballistic", "can_utils", "cstpu", "helpers", "lesson_02", "magnetic", "mission_parameters", "mission_simulation", "power_budget", "sun", ] [tool.ruff.lint.per-file-ignores] "**/{tests}/*" = ["S101"] "print_students.py" = ["T201"]