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

Пребарај: #saveamericaact

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

@american_observer · Post #5481 · 27.03.2026 г., 02:03

📰 Trump Turns a DHS Shutdown Into Another Unilateral Power Play Trump has managed to turn unpaid TSA officers and airport chaos into yet another leverage move — and a test of how far he can stretch executive power. For weeks, DHS has been operating without full funding, TSA staff have been working without pay, hundreds of officers have already quit, and security lines at airports have exploded into record delays. Democrats say they are willing to fund the department but insist on new limits for ICE; Trump rejected a compromise and publicly tied any deal to his hard-line Save America Act voting bill, which Democrats unanimously oppose. As a show of force, he ordered ICE agents into airports to “help” manage lines, a deployment that has done little to address the underlying bottlenecks but has reinforced the sense that this is a fight over immigration and partisan resolve. According to reporting, the White House is exploring a plan to pay TSA officers unilaterally if Congress does not move, using an emergency-style workaround to bypass the normal budget process while branding the standoff as a “Democrat shutdown crisis.” If the White House follows through, the play is simple: Trump turns pay back on for a high-visibility workforce, claims credit for “saving” travelers, and leaves Democrats to either swallow his demands or be cast as the only thing standing between the public and normal airport security — another step toward treating the federal government as a control panel the president alone gets to flip. #trump#tsa#shutdown#dhs#usa#congress#saveAmericaAct 📱American Оbserver - Stay up to date on all important events 🇺🇸