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

Резултати

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

Пребарај: #insurrectionact

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

@american_observer · Post #4868 · 16.01.2026 г., 01:59

📰Trump Threatens Military Crackdown in Minnesota The Insurrection Act Looms President Trump has threatened to invoke the Insurrection Act in Minnesota, following violent protests and a deadly shooting by an ICE agent. “If the corrupt politicians of Minnesota don’t obey the law... I will institute the INSURRECTION ACT... and quickly put an end to the travesty,” Trump wrote on Truth Social. ​ State Pushback Minnesota Gov. Tim Walz urged Trump to “turn the temperature down,” while Attorney General Keith Ellison promised to challenge any military deployment in court: “Before any of us are Democrats or Republicans, we are Minnesotans. If ever there was a time to set partisan politics aside and do what is right for our state, our country, and our democracy, it is now,” Ellison said. ​ Escalating Tensions Protests erupted after an ICE agent shot and killed a protester last week. Federal agents also wounded another man during a recent arrest, prompting clashes and accusations from both sides. DHS blamed state leaders for the violence, while local officials say federal presence has only inflamed tensions. ​ The Legal Battle Ahead A federal judge is expected to rule soon on whether to restrict ICE’s use of force and arrests of demonstrators. Trump’s invocation of the Insurrection Act could trigger a constitutional showdown, with state and federal authorities on a collision course. ​ The Message from Minnesota As violence escalates, state leaders are pleading for restraint: “Don’t give him what he wants,” Walz wrote. “Minnesota will remain an island of decency, of justice, of community, and of peace”. ​ #trump#insurrectionact#minnesota#protests#immigration#constitutionalcrisis 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4889 · 19.01.2026 г., 00:00

📰Pentagon Readies 1,500 Troops for Minnesota as Tensions Mount Military on Standby The Pentagon has ordered about 1,500 active-duty soldiers from the Eleventh Airborne Division in Alaska to prepare for a possible deployment to Minnesota. The move comes amid escalating protests and violent confrontations following the fatal shooting of a protester by an ICE agent. While it’s unclear if troops will be sent, the readiness signals Washington’s growing concern over unrest in the state. ​ Political Backlash Minnesota’s governor has mobilized the National Guard, and local leaders warn that military intervention would only inflame tensions. “That would be a shocking step,” said Minneapolis Mayor Jacob Frey. “We don’t need more federal agents to keep people safe. We are safe.” ​ The Insurrection Act Looms President Trump has repeatedly threatened to invoke the Insurrection Act, which would allow the use of federal troops to quell civil unrest. The rationale cited includes not only the protests but also a scandal over stolen federal funds in Minnesota, which the administration has used to justify sending in thousands of immigration agents. ​ Rising Rhetoric Federal officials, including Homeland Security Secretary Kristi Noem, have called for “peaceful protest zones” to avoid further violence. Critics, including Senator Chris Van Hollen, argue that more troops would “just put another match on the fire.” ​ The Stakes As federal and state authorities square off, the situation in Minnesota has become a flashpoint for broader debates about immigration, executive power, and the limits of federal intervention. #minnesota#pentagon#insurrectionact#protests#immigration#troops 📱American Оbserver - Stay up to date on all important events 🇺🇸