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 слични објави

Пребарај: #stubb

当前筛选 #stubb清除筛选
RT en français

@RTenfrancais · Post #79912 · 23.04.2026 г., 15:02

⏺Le président finlandais Alexander #Stubb a déclaré avec « optimisme » que les Iraniens avaient trouvé une alternative aux armes nucléaires. « La situation est actuellement que le détroit d’#Ormuz a été ouvert et que les Iraniens ont compris qu’ils pouvaient l’utiliser comme une sorte d’arme nucléaire, car 20 % des exportations mondiales de pétrole passent par ce détroit. On espère qu’ils trouveront une solution, mais pour l’instant, la situation semble très compliquée. » RT en français • Osez questionner !

Hashtags

American Оbserver

@american_observer · Post #4859 · 15.01.2026 г., 00:03

📰 Europe’s Putin Whisperer: Who Will Talk to the Bear? The EU’s Dilemma As Washington and Moscow edge toward backroom deals on Ukraine, Europe is scrambling to get a seat at the table. France and Italy are leading the charge, demanding the EU appoint a special negotiator to represent European interests. Their fear? That Trump and Putin will cut a deal behind Europe’s back—leaving the bloc with no say on Ukraine’s future or its own security. “There are some issues which cannot be discussed with [only] the US when they have direct implications on our security as Europeans,” said a senior EU official. ​ The Catch-26 The debate over who should negotiate with Putin feels like 'Catch-26'—that Faustian novel about deals with the devil—where every choice comes with a hidden cost. Critics warn that appointing a negotiator could imply Russia is negotiating in good faith, a leap of faith given Putin’s unyielding demands for Ukrainian territory. Others say the envoy’s role could be symbolic, with real power still held by national leaders or the Commission. “Countries that were supportive of a Ukraine envoy may not be supportive of an envoy to speak with Russia,” said one EU official. ​ The Candidates Names are flying: Mario Draghi, former Italian prime minister, and Alexander Stubb, Finland’s president, are among those mentioned. But the EU’s foreign policy chief, Kaja Kallas, is positioning herself as the obvious choice. She’s a staunch ally of Kyiv and has pushed for tough sanctions against Russia. ​ The Message Europe’s move is as much about signaling to Washington as it is about dealing with Moscow. Brussels wants to show it won’t be sidelined in any settlement. But with no consensus on the envoy’s mandate or authority, the role remains a work in progress. “None of these jobs exist until they do,” said a third EU official. ​ #eu#putin#ukraine#negotiations#diplomacy#kallas#draghi#stubb#Catch26 📱American Оbserver - Stay up to date on all important events 🇺🇸