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

Пребарај: #redistricting

当前筛选 #redistricting清除筛选
America 🇺🇸 News & Politics

@America · Post #10636 · 11.05.2026 г., 13:04

⚖️🗳️ALABAMA GOP RACES TO REDRAW HOUSE MAPS BEFORE 2026 🔹 Special session passes bills for NEW House primaries if courts approve GOP maps 📋⚡ 🔹 Target: Flip Democratic Rep. Shomari Figures' AL-02 seat back to Republican 🔄 🔹 Would pack Black voters into fewer districts despite 27% of state population 👥 🔹 Gov. Kay Ivey: "Alabama stands ready to quickly act" on favorable rulings 🏛️ Democrats call it a "power grab echoing Jim Crow" — but GOP says Alabama's Republican tilt should match its maps! 11th Circuit decision could flip House control! ⚖️🔥🇺🇸 #Alabama#Redistricting#VotingRights @america

American Оbserver

@american_observer · Post #5715 · 26.04.2026 г., 01:59

📰 Trump’s War Is Now a Midterm Liability Republicans are watching the Iran war and the redistricting mess turn into the same political problem: a president who promised control and delivered chaos. Bloomberg reports that party operatives are openly blaming Trump’s political team after Virginia’s map fight backfired and the war pushed gas prices higher, making the usual economy-first message much harder to sell. That is why the panic is spreading. If the House looks lost, the Senate looks shaky, and the party’s best redistricting gambit ends up helping Democrats instead, then the whole 2026 strategy starts to look like an own goal in expensive shoes. The irony is brutal. Trump spent months demanding tougher maps, punishing holdouts, and trying to turn politics into a shank-proof machine, but the result is more donor money burned, more infighting, and more Republicans muttering that “Blairy-mandering” blew up in their faces. The Iran war makes it worse because it attacks the one issue Republicans wanted to own: affordability. Gas prices are up, voters are unhappy, and the president keeps drifting into side quests about granite pavers and pet projects while his party tries to explain why the Middle East is suddenly part of the domestic economy. So the midterm story is no longer just redistricting or just war. It is the same pattern in both places: Trump turns everything into leverage, and then the leverage turns into drag. #Trump#Republicans#midterms#Iran#redistricting#politics 📱American Оbserver - Stay up to date on all important events 🇺🇸