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

Пребарај: #messages

当前筛选 #messages清除筛选
1 English learning materials

@englishmeta1 · Post #39 · 13.02.2022 г., 15:36

Valentine's Day Messages: .1All I wanted was someone to care for me, All I wanted was someone who'd b there for me, All I ever wanted was someone who'd b true, All I ever wanted was someone like You! Happy Valentine's Day! 2.A day filled with kisses, a week filled with romance, a month filled with love, a year filled with bliss and a lifetime filled with happy memories. I want to spend the rest of my life with you. Happy Valentine’s Day! 3.Darling, my love for you is as deep as the sea and as high as the sky. Happy Valentine’s Day! When I look at you, I’m amazed by your beauty, both on the outside and the inside. Happy Valentine’s Day! 4.I still remember the moment when our eyes met for the first time. I felt butterflies in my stomach and since then my heart longs to be with you always. Be mine forever! 5.A day without you is a day without a sun, a night without a moon; a life without meaning. 6.Happy Valentine’s Day to the most special person in my life. You are my love, my heart and my joy. #Messages #Teamjimmy #sirjimmy

🎨 𝗧𝗘𝗠𝗔𝗦 𝗧𝗘𝗟𝗘𝗚𝗥𝗔𝗠 ➤ 𝗧𝗚𝗫 📢 𝗖𝗵𝗮𝗻𝗻𝗲𝗹: @DNZ_Temas ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ 🔗𝗔𝗣𝗣𝗟𝗬 𝗧𝗛𝗘𝗠𝗘>> 𝕋𝔼𝕃𝔼𝔾ℝ𝔸𝕄 ✅ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ 🏷️Tags: #Dark#Google#Messages ╚═══ ღ 𝔻ℕℤ 𝕋𝔼𝕄𝔸𝕊 ღ ═══╝

BotsGram®

@botsgram_cu · Post #3217 · 30.11.2020 г., 21:31

@GitHubBot Qué puede hacer este bot? Este es un bot de GitHub. Puede notificarle sobre eventos en sus repositorios públicos de GitHub. También puede responder a tus mensajes para publicar comentarios en GitHub directamente desde Telegram. Idioma: Inglés (visto en @BotsGram_cu) #telegram, #notify, #events, #github, #delete, #public, #command, #messages, #repository

BotsGram®

@botsgram_cu · Post #3233 · 04.12.2020 г., 02:27

@junction_bot Qué puede hacer este bot? Este bot puede recopilar publicaciones de tus canales favoritos de Telegram, para que puedas leerlas como un servicio de noticias. ¡También puede copiar mensajes entre canales y bots, filtrar anuncios, modificar mensajes y mucho más! Idioma: Inglés, Ruso, Turco (visto en @BotsGram_cu) #link, #word, #project, #feed, #messages, #group, #subscription, #telegram, #share, #channel, #questions, #command, #inline, #join, #twitter, #favorite, #collect, #news, #enter, #place, #free, #message, #welcome