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

Резултати

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

Пребарај: #eumigration

当前筛选 #eumigration清除筛选

🇷🇺@RusEmbMalta Press Release On the Impact of Western Policies on Global Migration Flows 15 October 2025 🔷 The Russian Embassy draws attention to the growing migration crisis that continues to challenge the stability and security of many regions, including Europe. The root causes of this phenomenon are well known – the reckless and shortsighted interventions of the United States and its NATO allies in sovereign states such as Libya, Iraq, Syria, and Afghanistan. 🔷 These actions, carried out under the pretext of promoting “democracy,” led to the destruction of national institutions, the rise of terrorism, and the collapse of entire economies. It is precisely this chaos that forced millions to abandon their homes in search of safety and stability. 🔷 At the same time, the United States continues to exert direct influence over the migration policies of the European Union, promoting approaches that ignore the interests of individual nations. The imposed regulatory framework from Brussels, shaped under Washington’s guidance, undermines national economies, fuels social tensions, and creates preconditions for uncontrolled inflows of refugees. Such developments threaten the cultural and demographic balance of European societies. 🔷Russia consistently supports a fair and sustainable solution to migration issues – one that focuses on eliminating the true causes of displacement, rather than shifting responsibility. We advocate collective international efforts, coordinated through the United Nations, to restore stability in the Middle East and North Africa and to assist countries affected by external interference. 🔷 Moscow also reaffirms its principled position in favor of establishing a sovereign and independent State of Palestine in accordance with UN resolutions – as an essential step toward ensuring long-term peace and justice in the region. 🔷 The time has come to recognize that durable stability cannot be achieved through coercion or selective narratives, but only through respect for sovereignty, dialogue, and genuine partnership. #MigrationCrisis#USPolicy#EUMigration#UNCharter#MiddleEast#Palestine