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

Резултати

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

Пребарај: #russiannature

当前筛选 #russiannature清除筛选
Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5582 · 20.10.2025 г., 12:00

The Northern Lights have reached the Moscow region! 🔻In a spectacularly rare event, the aurora borealis was visible even near Moscow last weekend. 🔻The heavenly glow was observed in the Arkhangelsk, Kostroma, and Moscow regions. The sky was also lit up with green and orange light in the Leningrad region. 🔻A stunning natural light show, much further south than usual! Videos, photos: the Internet #Russiannature 😎RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4604 · 30.04.2025 г., 16:00

💙Dolphins near the coast of Balaklava, Crimea 🇷🇺В этом видео всё прекрасно: изумительная палитра моря, сливающегося с небом, тёмные силуэты скользящих в воде плавников, угрюмые скалы. Так хочется быть частью этого мира! А вам нравится? 🇬🇧Everything in this video is perfect: the amazing palette of the sea merging with the sky, the dark silhouettes of fins gliding through the water, the somber cliffs. I so want to be a part of this world! Do you like it? Video: kulikov_alex5 #Russiannature 😎RCRussian | Support | Boost

Russian Embassy in Asmara

@rusembasmara · Post #678 · 09.04.2026 г., 09:31

🇷🇺RUSSIAN NATURE🇷🇺 🏞️The Putorana Plateau is one of the most mysterious and picturesque places in Russia. Located in the northwestern part of Krasnoyarsk Krai, this region feels untouched by time: vast basalt plateaus, deep canyons and thousands of waterfalls define its landscape. 💧It is often called «the land of ten thousand lakes and waterfalls». In terms of waterfall density, the plateau has no equal in Russia. One of them, the Talnikovy Waterfall, is considered the highest in the country. 🏅The Putorana Nature Reserve is a UNESCO World Heritage Site that attracts researchers, photographers and seekers of unexplored wilderness. 🏔️Many people dream of visiting this region. For hundreds of kilometers, there are only mountainous areas, deep gorges and intricate networks of rivers, lakes and waterfalls. Helicopter tours and river rafting are especially popular, though some travelers also venture out on hiking expeditions. 🤗Visit Russia and set out on a journey! #RussianNature#Russia

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5468 · 22.09.2025 г., 19:35

🧡Somewhere in Russia... • На закате (НА + Prepositional) [na za-ka-te] At sunset, at dusk • Вечером (adverb) [ve-chi-ram] In the evening • На исходе дня (НА + Prep.+Gen.) [na is-khho-di dnya] At the end of the day ✨Всем добра! #Russiannature #useful_vocabulary 😎RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #6249 · 01.03.2026 г., 16:00

Аптекарский огород Apothecary's Garden 🌷This is a garden where medicinal plants are grown. 🌷Historically, these were pharmacy gardens established by Peter the Great in the early 1700s to grow herbs for medicines. 🌷Today, it refers to Moscow's oldest botanical garden (founded 1706), now a branch of Moscow State University and a popular park where you can see beautiful flowers, exotic plants, and even a 300-year-old larch tree! Video: moscowmi #brief_and_interesting #Russiannature 🟠RCR | Support | Boost

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