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

Резултати

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

Пребарај: #palestinian

当前筛选 #palestinian清除筛选

@RusEmbMalta: ❗Appeal of the State Duma to the United Nations, international parliamentary organizations, world parliaments in connection with the heavy toll of children’s deaths and current humanitarian situation in the Israeli–#Palestinian conflict zone

Hashtags

MessageInABottle

@mib_messageinabottle · Post #6881 · 22.05.2024 г., 22:10

🇺🇸🇮🇱🇵🇸⁣Ben is finally waking up to the strategic intent behind October 7. On October 6 no one was seriously talking about a #Palestinian State. Since October 7, everyone is. All Hamas had to do was provide #Israel the opportunity to show the world the true face of its genocidal existence. @MostMoralArmy

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3930 · 25.01.2025 г., 13:26

#Palestinian Civil Defence is currently recovering remains of #Gazan martyrs which they couldn’t previously reach. Many of these bodies have decomposed. Gaza’s Civil Defence Spokesperson Mahmoud Basal said that the number of martyrs whose bodies evaporated reached 2848 martyrs. #Israel’s use of internationally forbidden arms stands behind this phenomenon. The #Palestinian Media Center said that these weapons, which haven’t been identified, melt and evaporate bodies due to the extreme heat produced by these weapons.

MessageInABottle

@mib_messageinabottle · Post #6882 · 22.05.2024 г., 22:10

🇮🇱🇵🇸BREAKING: #Israeli occupation forces execute an elderly #Palestinian woman and her daughter while fleeing from Road 8 in #Gaza's Sabra neighborhood. The two were directly shot by snipers positioned on rooftops, according to eyewitnesses. @MostMoralArmy

Addis Standard

@addisstandardeng · Post #22163 · 02.05.2026 г., 10:01

#Commentary: #Ethiopia’s Policy Realignment: From #Pan_African Beacon to Client State On 31 March 2026, the UN Human Rights Council adopted a resolution condemning #Israel’s actions in the occupied #Palestinian territories and the Syrian Golan Heights. Thirty-one countries supported it; Ethiopia was among only three in opposition. Sidoc Haytu describes the move as “a profound betrayal of the Pan-Africanist and anti-colonial principles that once defined the Ethiopian state.” While officials frame the vote as pragmatic, he argues it serves elite interests, noting “the calculation was not performed on behalf of the 120 million Ethiopians.” Contrasting Ethiopia’s past stance, he claims, “When Ethiopia votes at the #UN… it is voting as a client of…Tel Aviv,” urging a reversal: “Ethiopia will not stand with colonizers.” https://addisstandard.com/?p=56716

12
ПретходнаСтраница 1 од 2Следна