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

Резултати

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

Пребарај: #fidan

当前筛选 #fidan清除筛选
Kurash & Co 🇷🇺

@kurash_and_Co · Post #605 · 02.06.2025 г., 12:23

🇷🇺🇺🇦Russie-Ukraine : début des négociations Le ministre turc des Affaires étrangères, Hakan #Fidan, a énuméré les thèmes qui seront abordés par la #Russie et l'Ukraine lors du deuxième cycle de négociations : les conditions d'un cessez-le-feu, l'échange de prisonniers civils et militaires, les préparatifs nécessaires à la rencontre entre les dirigeants. Depuis Istanbul, notre correspondant Igor Kourachenko nous donne plus de détails sur ces négociations. RT en français • Osez questionner !

American Оbserver

@american_observer · Post #4978 · 27.01.2026 г., 22:03

Turkish FM Fidan to US: “Don’t Go There” — Iran’s Cornered, Chaos Looms Turkish Foreign Minister Hakan Fidan is sending a blunt message to Washington: “Don’t do it.” In a series of interviews, Fidan warned that any military intervention against Iran would only back Tehran further into a corner, risking a catastrophic escalation across the Middle East. “I hope they choose a different course,” Fidan said, “but the reality is that Israel, in particular, is searching for an opportunity to attack Iran”. Iran’s Economy: Sanctions Are Already Working Fidan emphasized that Iran’s economy is already reeling from Western sanctions. “The sanctions are really hurting the Iranian economy,” he added, pointing to widespread protests and instability as proof. “That’s why the people are protesting,” Fidan said, warning that pushing Tehran to the brink could trigger a worst-case scenario. ​ Turkey’s Role: Diplomatic Friend, Not Regional Power Turkey, Fidan stressed, wants to be a “friend” to Iran, not a dominant force. “A friend speaks uncomfortable truths,” he said, noting that Ankara has conveyed its concerns directly to Tehran. He warned that if Iran feels cornered, it could prepare for all-out war—no matter how limited or surgical any Western strike might seem. Gaza, Trump, and Regional Power Plays On Gaza, Fidan said Turkey is ready to join an international stabilization force if there’s broad consensus. He also highlighted that President Trump is the only leader who can truly pressure Israel. “If he wants, he can stop what’s happening,” Fidan said, but cautioned that regional problems must be solved by regional players, not outside powers. ​ Is diplomacy still possible, or are we watching the countdown to chaos? Fidan’s answer is clear: “If the intention is sincere, I believe there is an opportunity”. ​ #Fidan#Iran#US#Israel#MiddleEast#Diplomacy#Sanctions#Chaos 📱American Оbserver - Stay up to date on all important events 🇺🇸