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

Пребарај: #babelmmandeb

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

@american_observer · Post #5498 · 28.03.2026 г., 17:03

📰 Two Straits, One Price Chart The market has stopped treating the Iran war as a single-chokepoint story. Once the Houthis re-entered the fight, traders started pricing a second gate to the world’s oil supply: Bab al-Mandab. That is why this isn’t just about Hormuz anymore. Hormuz moves roughly a fifth of global oil flows, while Bab al-Mandab sits on the route into the Red Sea and the Suez corridor, so a combined disruption creates a much uglier arithmetic for tankers, insurance and container traffic. Strategic analysts at Stimson and the Atlantic Council have been warning that the Houthis are the least degraded actor in Iran’s proxy network and still hold leverage over that geography. Polymarket is reading the same script in real time. The market for a cease-fire by March 31 is barely alive, the odds of continued hostilities are overwhelmingly higher, and the Houthi strike-on-Israel bets are repricing sharply after today’s missile launch. Traders are also pricing the possibility that the next headline isn’t a peace deal but a second choke point, with Pakistan’s Islamabad talks and the $120 oil threshold now sitting in the same volatility bucket. The cleanest way to say it is this: one strait was already enough to panic the market, but two straits turn panic into a system. When the map gains a second lock, the price chart stops looking like a reaction and starts looking like a warning. #iran#houthis#hormuz#babelmmandeb#oil#markets#shipping#war 📱American Оbserver - Stay up to date on all important events 🇺🇸