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

Резултати

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

Пребарај: #comput3

当前筛选 #comput3清除筛选
TONlines – News

@tonlines · Post #7175 · 12.05.2025 г., 15:31

Final Day for Solana Wallet Addition on RoOLZ Gods & Mortals #Solana#Comput3 The RoOLZ Gods & Mortals channel reminds users that today is the last day to add their Solana wallet for the $COM drop. A snapshot will be taken tomorrow, and the drop is scheduled for Wednesday. Source: link @tonlines

TONlines – News

@tonlines · Post #7378 · 26.05.2025 г., 15:57

RoOLZ Gods & Mortals: Join the Comput3 Reward Quest #RoOLZ#Comput3 The RoOLZ app introduces a new feature allowing users to earn rewards by engaging with communities. Comput3, the first onboarded project, offers $2K in GODL tokens for user participation. Points can be earned through social media interactions and video posts. Source: link @tonlines

TONlines – News

@tonlines · Post #7218 · 14.05.2025 г., 17:45

RoOLZ Gods & Mortals: Exciting COM Airdrop for Stakers #Comput3#Roolz The channel RoOLZ Gods & Mortals announces a significant airdrop of the COM token, rewarding top $GODL stakers and RoOLZ NFT holders. The distribution model offers enticing multipliers, boosting rewards up to 120x for the most committed stakers. Source: link @tonlines

TONlines – News

@tonlines · Post #6780 · 15.04.2025 г., 15:29

RoOLZ Gods & Mortals: Comput3 Airdrop Announcement #Comput3#GODL RoOLZ Gods & Mortals advises $GODL stakers to prepare for the upcoming Comput3 Airdrop. Participants can stake $GODL in the new pools and finish Comput3 tasks to qualify. Source: link @tonlines

TONlines – News

@tonlines · Post #7053 · 05.05.2025 г., 14:41

RoOLZ Gods & Mortals: Launch of Comput3 on Auto.Fun #Comput3#Auto RoOLZ Gods & Mortals is preparing for the launch of Comput3 ($COM) on Auto.Fun, a partner project for $GODL stakers. This event highlights the channel’s use of GPU infrastructure for AI animations and more. Source: link @tonlines

TONlines – News

@tonlines · Post #6733 · 12.04.2025 г., 10:25

⚡️RoOLZ Gods & Mortals: Comput3 Nears Token Launch #Comput3#ElizaOS RoOLZ Gods & Mortals announces that its partner, Comput3, is set to launch its token on the ElizaOS Launchpad. Comput3 offers an exciting platform providing Nvidia GPUs and opensource LLM models to developers via an API Key. The community is encouraged to support Comput3 on social media and participate in the launch. Source: link @tonlines