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

Резултати

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

Пребарај: #euindia

当前筛选 #euindia清除筛选
American Оbserver

@american_observer · Post #4995 · 29.01.2026 г., 23:59

📰 Trump Official Blasts Europe Over India-EU Trade Deal US Treasury Secretary Scott Bessent has sharply criticized Europe’s new free trade agreement with India, accusing Europe of hypocrisy and calling out its double standards on the Ukraine war. ​ Bessent argued that Europe’s choices expose a deep contradiction in its Ukraine policy. While publicly condemning Russia’s invasion, Europe has become a major buyer of refined oil products made from discounted Russian crude, which India has been buying since Western sanctions hit. ​ “Europe and India signing this massive trade deal—does that threaten America? They should do what’s best for themselves,” Bessent said. “But I find the Europeans very disappointing because they are on the front line of the Ukraine-Russia war.” He pointed out that the US imposed a 25% tariff on India for buying Russian oil, but Europe declined to join, suggesting this reluctance was driven by a desire to keep trade negotiations with India on track. ​ Bessent accused European countries of indirectly financing the conflict they publicly oppose. “Europeans were unwilling to join us, and it turns out because they wanted to do this trade deal,” he said. “Every time you hear a European talk about the importance of the Ukrainian people, remember that they put trade ahead of the Ukrainian people.” Bessent acknowledged Europe’s dependence on energy imports but framed the issue as a moral and strategic trade-off. “They need energy, I guess, which is part of their issue. At a price, they want cheap energy,” he said. ​ His comments highlight growing tensions within the Western alliance over how strictly to enforce economic pressure on Russia while managing domestic economic and political costs. ​ #TradeDeal#EUIndia#Trump#Ukraine#EnergySecurity 📱American Оbserver - Stay up to date on all important events 🇺🇸