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

Резултати

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

Пребарај: #adaptation

当前筛选 #adaptation清除筛选
Amazing Geography 🌍

@amazingeo · Post #622 · 09.02.2026 г., 12:31

🌍 Some rainforest insects mimic leaves so perfectly they even show “bite marks” or rot spots on their bodies, hiding from predators in the dense, shadowy understory. ✨ #rainforest⚡#biodiversity⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #528 · 21.12.2025 г., 20:31

🌍 Terraced vineyards on Portugal's Douro River show how people reshape steep hillsides for farming. Ancient stone walls protect soil from erosion while letting grape vines thrive in harsh terrain. ✨ #agriculture⚡#landscape⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #17 · 10.08.2025 г., 10:26

🌍 Terraced rice fields in Southeast Asia transform steep hillsides into farmable land, reducing soil erosion and creating unique landscapes shaped by both nature and human ingenuity. ✨ #agriculture⚡#landscape⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

Interesting Planet 🌍

@interesting_planet_facts · Post #987 · 29.10.2025 г., 18:11

🌎 The male seahorse is the only animal where the male becomes pregnant, carrying fertilized eggs in a special pouch until they hatch. Seahorses can give birth to hundreds of fully formed young at a time—up to 2,000 in a single brood. ✨ #adaptation⚡#animals⚡#ocean 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #547 · 31.12.2025 г., 12:31

🌍 In tundra landscapes, some mosses and lichens can survive temperatures below –50°C and continue to photosynthesize under snow, making them some of the Earth’s hardiest plants. ✨ #tundra⚡#permafrost⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #310 · 29.09.2025 г., 12:31

🌍 The Galápagos Islands are home to the only marine iguanas on Earth. These unique lizards swim and dive in the Pacific Ocean, making them the world’s only sea-going reptiles. ✨ #islands⚡#wildlife⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #24 · 10.08.2025 г., 13:59

🌍 Urban green roofs, where buildings are topped with plants, help cities manage rainwater, reduce heat, and provide habitats for birds and insects, blending urban life with nature. ✨ #cities⚡#environment⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

Amazing Geography 🌍

@amazingeo · Post #509 · 12.12.2025 г., 12:31

🌍 In tropical rainforests, some plant leaves grow waxy surfaces and pointed tips called "drip tips." These features help water run off quickly, stopping mold and fungi in the damp climate. ✨ #rainforest⚡#tropics⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #120 · 26.08.2025 г., 13:12

🌍 Earth’s climate zones are not just about temperature—they also shape which plants and animals can survive. Some cacti thrive in deserts, while rainforests burst with life in tropical zones. ✨ #climate⚡#vegetation⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Interesting Planet 🌍

@interesting_planet_facts · Post #539 · 11.08.2025 г., 03:22

🌎 The star-nosed mole detects prey in total darkness using its unique nose, covered in 22 finger-like tentacles packed with touch sensors. This extraordinary adaptation lets it identify and eat tiny insects and worms faster than any other mammal, even underwater. ✨ #animals⚡#adaptation⚡#evolution 👉subscribe Interesting Planet

Amazing Geography 🌍

@amazingeo · Post #663 · 16.03.2026 г., 20:31

🌍 Tropical savannas can burn naturally every 1–3 years, yet some species, like the baobab tree, thrive by storing water in thick trunks to survive both drought and fire. ✨ #savanna⚡#grassland⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #503 · 09.12.2025 г., 12:31

🌍 In Chile's Atacama Desert, rare fog called "camanchaca" drifts inland from the Pacific. Some plants here survive by absorbing water directly from this fog, not from rainfall. ✨ #desert⚡#arid⚡#adaptation⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

123•••78
ПретходнаСтраница 1 од 8Следна