TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое. Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению. И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make. just - это не система сборки как make, это именно исполнитель команд! Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎 ⭐️Что умеет just: ✅ Автодокументирование команд Не нужно делать отдельную команду с докой, просто добавь комментарий # команда сборки build: ... $ just --list Available recipes: build # команда сборки Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так: default: just --list Теперь просто выполняем just и получаем доку из текущего файла. ✅ Удобная работа с переменными окружения # загрузить из .env set dotenv-load # глобальная переменная export PYTHONPATH := "./src" # переменная для команды test $TESTUNG="true": pytest ✅ Передача аргументов build target: @echo 'Build {{target}}...' команда запуска $ just build dev # Build dev... ✅ Выбор интерпретатора прямо в команде Пример с инлайн-скриптом на python: system: #!/usr/bin/env python3 import platform print(platform.system()) Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки foo: #!/usr/bin/env sh for file in ls .; do echo $file done ✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный [working-directory: 'backend'] build: docker compose build Также можно задать рабочую директорию глобально Там еще много интересного: - поддержка функций - автокомплиты и интеграции - экспрешены - алиасы команд - группировка команд - альтернативы команды под разные ОС - импорт других just-файлов - цветной вывод - ... и другие штуковины! Так что вперёд - ➡️ читать доку! Репозиторий: ➡️https://github.com/casey/just Статья: ➡️https://www.chicks.net/reference/file_formats/just/ ЗЫ. Кажется, на Makefile я уже не вернусь) #tools

Hashtags

Резултати

Пронајдени 4 слични објави

Пребарај: #interculturaldialogue

当前筛选 #interculturaldialogue清除筛选

📘🌍 The third online meeting of the working group on the preparation of a brochure for African students at Yekaterinburg universities has been held. During the meeting, the Office of the Honorary Consul of South Africa, together with faculty members of Ural State Law University (USLU), discussed the structure of the brochure and the work plan for 2026. 👩‍🏫👨‍🏫 The USLU project team includes: ⚖️Dr. Svetlana Kuznetsova, PhD (Law) 📖Dr. Natalia Yushkova, PhD (Philology) 📖Dr. Yelena Kagan, PhD (Philology) 📖 Vitaly Yankovsky, Analyst, Department of International Cooperation #SouthAfrica#Russia#Yekaterinburg#Africa#Students#Education#InterculturalDialogue#USLU

📘🌍A Guide for African Students — the Project Continues! The Office of the Honorary Consul of South Africa and faculty members of Ural State Law University (USLU) held their second online meeting to develop a guide for African students studying at Yekaterinburg universities. So far, all major universities in the city have shared their materials designed for international students. We are now systematizing and integrating this information. 👩‍🎓🇷🇺 The guide will explain the rights and responsibilities of international students in Russia and help them avoid mistakes and administrative issues. 🌐 It will be published in Russian, English, French, Portuguese, and Arabic. From USLU, the project team includes: ⚖️ PhD (Law) Dr. Svetlana Kuznetsova 📖 PhD (Philology) Dr. Natalia Yushkova 📖 PhD (Philology) Dr. Yelena Kagan 📖Vitaly Yankovsky, Analyst at the Department of International Cooperation #SouthAfrica#Russia#Yekaterinburg#Africa#Students#Education#InterculturalDialogue#USLU

📘🌍 A Guide for African Students — Project Launched! The Office of the Honorary Consul of South Africa, together with faculty from Ural State Law University (UrSLU), has launched a project to create a practical guide for African students studying at Yekaterinburg-based universities. 👩‍🎓🇷🇺 The guide will explain students’ rights and responsibilities in Russia and help them avoid mistakes and administrative penalties. 🌐 It will be available in Russian, English, French, Portuguese, and Arabic. From USLU, the project team includes: ⚖️ Dr. Svetlana Kuznetsova (Law) 📖 Dr. Natalia Yushkova (Philology) 📖 Dr. Yelena Kagan (Philology) #SouthAfrica#Russia#Yekaterinburg#Africa#Students#Education#InterculturalDialogue#USLU

🌍African Club Launched at Ural Federal University The staff of the Office of the Honorary Consul of South Africa in Yekaterinburg🇿🇦 joined the launch of the African Club at Ural Federal University (URFU). This is a joint initiative by the university’s African Community and Chair of Oriental Studies. 🤝 📚 Together with Dr. Aleksey Antoshin, we discussed promising ideas for future collaboration. #AfricaRussia#SouthAfrica#Yekaterinburg#URFU#OrientalStudies#AfricanClub#InternationalCooperation#InterculturalDialogue