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

Пребарај: #house2026

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

@american_observer · Post #5022 · 01.02.2026 г., 19:04

📰 Federal Courts Undercut Trump’s Mass Deportation Campaign The Trump administration’s mass deportation campaign, built on mandatory detention, is hitting a wall: a flood of habeas corpus cases in federal courts, releasing hundreds of immigrant detainees and overwhelming prosecutors. For decades, most immigrants held in detention could get bond before an immigration judge if they were not a danger or flight risk, allowing them to fight their case from home. But the Trump administration changed that, making nearly everyone in the country unlawfully subject to automatic, long-term detention, stripping judges of discretion. Federal judges in states like Massachusetts, Rhode Island, Georgia, Nevada, Texas, and elsewhere are now rejecting this approach, ordering immediate releases or demanding bond hearings in immigration court. In district after district, judges have approved dozens, even hundreds, of habeas petitions, ruling that the government cannot keep immigrants locked up indefinitely without a hearing, especially when they have deep U.S. ties, no criminal record, and stable families. The surge has turned federal courts upside down. In some districts, hundreds of new habeas cases flood the docket each month. The Justice Department has had to pull criminal prosecutors off their regular duties to help defend the incarcerations, and federal judges are openly complaining about the “flood” and “similar stories” of families torn apart and people held in remote detention centers. Lawyers report that virtually every habeas petition they file ends in a victory: a release order or a bond hearing. Some can now do dozens of cases a month, and word is spreading fast inside detention centers. To avoid these court battles, the administration has turned to a different tactic: pressuring immigrants to “self‑deport” with intimidating ads and social media, while offering cash incentives (typically $3,000–5,000) to quit and leave voluntarily. But the legal reality is clear: the Trump administration’s attempt to keep immigrant detainees locked up indefinitely is being systematically reversed by the lower courts, district by district. The real question is not whether the mass deportation machine can crush the system, but whether the courts — or the families and lawyers who flood them — will break first. #Trump2026#Immigration#Deportation#ICE#Courts#HabeasCorpus#DoJ#House2026 📱American Оbserver - Stay up to date on all important events 🇺🇸