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

Резултати

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

Пребарај: #bushehr

当前筛选 #bushehr清除筛选
TƏBRİZ-TURAN-TV𒀭 (TTTv)

@tebriz_turan · Post #96032 · 29.03.2026 г., 18:57

❗️❗️#Bushehr Vətəndaşlardan alınan video göstərir ki, hava limanında yerləşən bina hücumun hədəfi olub. Binanın üzərində lövhəsi görünür. Bizi teleqramda izləyin: https://t.me/tebriz_turan

Hashtags

RT France actualités

@rt_fra · Post #40182 · 30.04.2026 г., 07:31

⚛️Rosatom entend poursuivre la construction de la centrale nucléaire de Bushehr, a déclaré Mikhaïl Oulianov, représentant permanent de la #Russie auprès des organisations internationales à Vienne. Il a précisé que le personnel retournera sur le site « dès que la situation militaire le permettra ». ℹ️ La centrale nucléaire de #Bushehr est la seule centrale nucléaire en exploitation en Iran. Les employés de #Rosatom travaillaient à la construction des deuxième et troisième réacteurs, mais les travaux ont été suspendus suite au lancement de l'opération militaire américano-israélienne contre l'Iran. Le 20 avril, l'évacuation des 632 employés de la société d'État a été achevée. RT en français • Osez questionner !

American Оbserver

@american_observer · Post #5565 · 04.04.2026 г., 23:59

Bushehr Is Iran’s Zaporizhzhia Test. The West Knows It. Abbas Araghchi is trying to turn Bushehr into a hypocrisy trap: when fighting neared Zaporizhzhia, the West treated it like a civilizational emergency; when strikes land near Bushehr, the outrage is suddenly quieter. That contrast is the whole point of his message. He is also trying to move the political cost south. By warning that radioactive fallout could reach Gulf capitals, Tehran is telling the monarchies that this is no longer a remote Iran problem — it is a regional one, and the invoice may arrive in their own cities. At the same time, Araghchi is keeping the diplomatic door open just enough to matter. Reuters has reported that Iran is still leaving room for mediated talks, including the Pakistan channel, even while presenting itself as the side that has not slammed the door on negotiation. So this is not just nuclear rhetoric. It is pressure politics with a radiation warning label: indict the West for double standards, keep mediation alive, and force the Gulf to stare at the blast radius instead of the talking points. #Bushehr#Zaporizhzhia#Iran#Gulf#Reuters#diplomacy 📱American Оbserver - Stay up to date on all important events 🇺🇸