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

Резултати

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

Пребарај: #beirut

当前筛选 #beirut清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3713 · 24.11.2024 г., 11:23

Hezbollah missiles falling on Tel Aviv at 1:00 pm in retaliation to the massacres committed against Lebanese civilians in the heart of the Lebanese capital #Beirut.

Hashtags

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3698 · 23.11.2024 г., 02:35

Footage from the massacre committed by the Zionist enemy on a building on Fathalla Street in the heart of the capital #Beirut Packed..i mean PACKED with residents and displaced people.

Hashtags

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3695 · 22.11.2024 г., 22:38

It’s past midnight in #Beirut, and our "shelter" homes in the capital trembled as if there were no tomorrow—courtesy of the terrorist entity, Israel. Location: Chiyah area, Beirut, Lebanon.

Hashtags

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3652 · 17.11.2024 г., 07:12

Under the world’s complicit silence, Israel continues to flatten clearly residential areas in #Beirut’s southern suburbs. These aren’t military targets. They’re homes. Lives. Futures. This is no accident; it’s a calculated erasure, making sure families have nothing to return to, even if the war ends. This was at 8:00 am today.

Hashtags

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3601 · 09.11.2024 г., 07:42

Another night of terror unfolded in #Beirut as Lebanese civilians endured relentless attacks, targeted by vile Zionist tereorists wielding U.S.-made weapons.

Hashtags

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3442 · 11.10.2024 г., 05:09

Qassem writes about saving this baby in last night's attack by Zionist Israel on the central #Beirut: "This child was lying right here, on the remaining piece of the ceiling. When I reached him, I couldn't believe he could still be alive. But when I saw his eyes looking up at me, and how he grabbed onto me, completely in shock, I didn't know what to feel. This child will grow up, and with him, so will the hatred for this savage entity."

Hashtags

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3313 · 22.09.2024 г., 15:39

The death toll from the Zionist aggression on the southern suburbs of #Beirut has risen to 51, following the recovery of another martyr's body. Ten people are still missing as search and rescue operations continue. Toll provided on 6:30 pm Beirut local time.

Hashtags

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