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

Резултати

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

Пребарај: #maqetuka

当前筛选 #maqetuka清除筛选

Farewell to Ambassador Mzuvukile Maqetuka 📅 March 31 marks the final day of the tenure of South African Ambassador to Russia and Belarus Mzuvukile Maqetuka. Today, he is departing from Russia. 💌 An excerpt from a farewell letter by the Honorary Consul of South Africa in Yekaterinburg, Sergey Mazurkevich, to Ambassador Maqetuka: "All our meetings have been truly memorable, and each time, you have emphasized the importance of fostering strong people-to-people ties. Your words have been a source of inspiration, guiding my efforts in this role. (...) Your Excellency, it has been an honor, privilege, and pleasure to know you personally and to serve as the Honorary Consul of South Africa under your leadership. My team and I remain committed to strengthening the ties between our nations, guided by the priorities you have set. Please accept our heartfelt gratitude, and our best wishes for your future endeavors." 🌍 Ambassador Maqetuka's dedication to building lasting connections and promoting cooperation between Russia and South Africa will be remembered and appreciated. Wishing him success in his future endeavors! #SouthAfrica#Russia#Diplomacy#Ambassador#InternationalRelations#Maqetuka#Mazurkevich

📚 At the international book festival Red Line, the Russian edition of Jim is Tired of Jo’burg by former South African Ambassador to Russia Mzuvukile Maqetuka was officially presented. 💬 In a lively dialogue, translator Dr. Dmitry Pobedash and editor Dr. Mikhail Brodsky explored the challenges of literary translation and shared fascinating stories about 🇿🇦 South Africa with the audience. 🤝 The event was made possible with the support of Ural Federal University Press and the Office of the Honorary Consul of South Africa in Yekaterinburg. #Culture#Literature#Festivals#SouthAfrica#Yekaterinburg#Translation#Maqetuka#Mazurkevich#UrFU

South Africa from A to Z: students, graduates, and professors of the Institute of International Relations (IIR) discovered many fascinating facts about the country! On March 22, South African English teacher Samora "Sam" Poswa held an engaging presentation at IIR, sharing insights about his homeland and answering numerous questions. The event was organized with the support of the Office of the Honorary Consul of South Africa in Yekaterinburg. The Office staff presented IIR Rector Dr. Irina Vylegzhanina with the Russian edition of Jim Is Tired of Jo’burg by South African Ambassador to Russia Mzuvukile Maqetuka, translated in 2024. They also spoke about the history of the project initiated by HC of South Africa Sergey Mazurkevich. #SouthAfrica#internationalrelations#education#culture#IIR#IMS#Maqetuka#Mazurkevich#Yekaterinburg

Во вторник 10 декабря Почётный консул Сергей Мазуркевич встретился в Москве с Послом ЮАР Мзувукиле Макетукой. Они обсудили текущие проекты офиса Почётного консула ЮАР и планы на 2025 год. #встречи#новости#Посол#Макетука#Мазуркевич _________________ On Tuesday, December 10, Honorary Consul Sergey Mazurkevich met with South African Ambassador Mzuvukile Maqetuka in Moscow. They discussed current projects of the Honorary Consul's office and plans for 2025. #meetings#news#Ambassador#Maqetuka#Mazurkevich

🇿🇦📖Jim may be tired of Jo’burg, but Yekaterinburg certainly isn’t tired of Jim! 📚 On August 22–24, the Red Line Book Festival (“Krasnaya Strokа”) — Yekaterinburg’s international book festival — will feature a new presentation of the Russian translation of Mzuvukile Maqetuka’s novel Jim Is Tired of Jo’burg. 📍The presentation format was discussed by representatives of the Office of the Honorary Consul of South Africa, translator Dr. Dmitry Pobedash (📸 right), and Dr. Aleksey Podchinyonov, the CEO of the Ural University Press (📸 left). 🗓 A year ago, an earlier presentation of translated chapters took place at the same festival: 🔗https://t.me/sarconsulurals/1340 📌 Details about the exact time and venue will be announced soon. #SouthAfrica#Yekaterinburg#Ural#RedLineFestival#Literature#AfricanLiterature#Translation#Maqetuka#UrFU#JimIsTiredOfJoburg