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

Резултати

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

Пребарај: #peacenegotiations

当前筛选 #peacenegotiations清除筛选
Crypto M - Crypto News

@CryptoM · Post #65310 · 12.04.2026 г., 20:05

🚀 Global Markets Brace for Volatility Amid Renewed Iran Conflict Concerns The potential resurgence of conflict in Iran following unsuccessful peace negotiations is raising concerns about increased volatility in global markets. Bloomberg posted on X that the recent fragile ceasefire had previously led to a significant rise in stock prices and a notable decrease in oil prices, marking the largest shifts seen this year. However, with the peace talks failing, market stability is once again under threat, prompting investors to brace for potential fluctuations. #GlobalMarkets#Volatility#IranConflict#PeaceNegotiations#OilPrices#StockMarket#Investors#MarketStability

Crypto M - Crypto News

@CryptoM · Post #65376 · 13.04.2026 г., 03:04

🚀 AI Technology Presents New Opportunities Amid Potential Financial Crisis On April 13, Liquid Capital founder Yi Lihua expressed optimism about the potential resolution of ongoing conflicts, noting that motivations for continued warfare are diminishing. According to BlockBeats, Yi emphasized that peace negotiations typically evolve from disagreement to consensus, suggesting that the conflict may gradually come to an end. He remarked that both sides have no reason to continue fighting, and the moment an agreement is reached could signal a positive market shift. Yi highlighted that, in the medium to long term, the market is anticipating a potential large-scale financial crisis. He observed defensive strategies in the financial sector, such as major capital holding high cash ratios and sovereign entities increasing gold reserves. In this context, if another crisis occurs, it will be a crucial test for Bitcoin's status as a safe-haven asset and may offer significant opportunities for low-level investment. Furthermore, Yi Lihua believes that AI technology is creating new opportunities for talented entrepreneurs. He noted that small teams can develop global products, reducing costs associated with financing and organizational management. Experienced serial entrepreneurs, in particular, should seize the opportunities presented by this "AI Age of Exploration." #AI#FinancialCrisis#Investment#Bitcoin#Entrepreneurship#Innovation#MarketOpportunities#Technology#PeaceNegotiations#GlobalProducts#BTC

Crypto M - Crypto News

@CryptoM · Post #65062 · 10.04.2026 г., 17:45

🚀 Iran's Leadership Revamp Amid Peace Talks with the US The ongoing conflict in Iran has prompted significant changes in the nation's leadership structure. Bloomberg posted on X that the Revolutionary Guards are set to play a pivotal role in the upcoming peace negotiations with the United States this weekend. This shift in power dynamics underscores the growing influence of the Revolutionary Guards in Iran's political landscape. The talks are expected to address key issues surrounding the conflict and aim to establish a framework for peace. Observers are closely watching how the involvement of the Revolutionary Guards will impact the discussions and the potential outcomes of these negotiations. #Iran#LeadershipRevamp#PeaceTalks#RevolutionaryGuards#USIranRelations#PoliticalLandscape#ConflictResolution#IranPolitics#PeaceNegotiations

Crypto M - Crypto News

@CryptoM · Post #65331 · 12.04.2026 г., 23:34

🚀 Middle East Nations Urge U.S. and Iran to Resume Talks After Failed Peace Negotiations According to BlockBeats, on April 13, The Wall Street Journal reported that following unsuccessful marathon peace talks in Islamabad, Middle Eastern countries are urging the United States and Iran to return to negotiations. Despite both sides issuing strong statements, diplomatic channels remain open, and a second round of talks could occur within days. Regional nations are in discussions with the U.S. to extend the fragile two-week ceasefire announced on Tuesday evening. Iranian officials have proposed alternative suggestions, such as continuing symbolic uranium enrichment activities or reducing their enriched uranium stockpile, but no compromise has been reached. #MiddleEast#USIranTalks#PeaceNegotiations#Diplomacy#Ceasefire#IranUranium#BlockBeats#Islamabad#Iran#MiddleEasternNations#WallStreetJournal