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

Резултати

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

Пребарај: #mediacoverage

当前筛选 #mediacoverage清除筛选
Venezuelanalysis

@venanalysis · Post #2186 · 25.11.2025 г., 19:04

🖊🗞OPINION | Corporate Media Parrot Dubious Drug Claims That Justify War on Venezuela Venezuelanalysis’ Ricardo Vaz breaks down how corporate media are reinforcing Washington’s narrative amid the largest US military buildup in the Caribbean in decades. Vaz shows how major outlets have echoed the Trump administration’s framing as the US deploys a major regional force, including the USS Gerald R. Ford, and carries out extrajudicial strikes that UN experts have denounced as violations of international law. He also highlights UNODC and DEA findings showing that Venezuela is a marginal cocaine transit route and that DEA assessments do not link the Venezuelan government to major trafficking operations, evidence largely sidelined in corporate media coverage. Read the full opinion piece here 👉🏾https://shorturl.at/eoszr #MediaCoverage#USMilitaryThreats

Venezuelanalysis

@venanalysis · Post #2198 · 05.12.2025 г., 20:25

🗒️🗣️ INTERVIEW | ‘Venezuela, the Threat of a Good Example’: A Conversation with Geraldina Colotti In a world turned upside down, Italian activist Geraldina Colotti argues that no good deed and no sovereign project goes unpunished. She links the latest US escalation against Venezuela to what she describes as a broader imperial strategy amid a global capitalist crisis, citing sanctions, psychological operations, and an expanded US military footprint across Latin America and the Caribbean. For Colotti, Venezuela remains a target because it disrupts this dynamic. Before the blockade, the country had nearly achieved the UN Millennium Goals, a record she says turned Venezuela into “the threat of a good example” that Washington moved to contain. Read the full interview here 👉🏾https://shorturl.at/4H7sB #MediaCoverage#USImperialism

Venezuelanalysis

@venanalysis · Post #2291 · 03.03.2026 г., 17:23

🖊OPINION | Western Gangster Journalism Runs Cover for Trump’s ‘Donroe Doctrine’ in Venezuela Western corporate media have played an active role in recent years in legitimizing escalated US aggression against Venezuela, including whitewashing economic sanctions that killed tens of thousands. In his latest opinion piece, VA's Ricardo Vaz breaks down this dishonest corporate media coverage that endorsed the US' military buildup and attacks against Venezuela. Read the full opinion piece here: https://venezuelanalysis.com/opinion/western-gangster-journalism-runs-cover-for-trumps-donroe-doctrine-in-venezuela/ #MediaCoverage#USmilitaryattack

Venezuelanalysis

@venanalysis · Post #2253 · 21.01.2026 г., 13:05

🖊OPINION | Labeling Kidnapping a ‘Capture,’ Media Legitimate Violation of International Law From January 3–5, leading US newspapers ran 223 articles mentioning Nicolás Maduro. Most described US actions using “capture” or “arrest,” while references to “abduction” or “kidnapping” appeared rarely and only in quoted statements. On this opinion piece, Greg Shupak exposes the corporate media's work in trying to legitimize the Trump administration's kidnapping of Venezuelan President Nicolás Maduro. Read the full opinion piece here 👉🏽https://shorturl.at/zyBC0 #MediaCoverage#NicolasMaduro#USmilitaryattack