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

Резултати

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

Пребарај: #oilfutures

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

@CryptoM · Post #65284 · 12.04.2026 г., 14:26

🚀 Oil Futures Surge as Trump Orders Naval Blockade of Strait of Hormuz Oil futures on Hyperliquid experienced a significant increase following U.S. President Donald Trump's directive to implement a naval blockade of the Strait of Hormuz. According to NS3.AI, West Texas Intermediate (WTI) crude oil perpetual futures surged by 7%, reaching $96.40, while Brent futures rose by 6% to $96. The trading volume for WTI futures hit $1.53 billion, ranking it as the third-most-traded instrument on the platform, following Bitcoin (BTC) and Ethereum (ETH). Emergency reserve releases have been compensating for a daily shortfall of approximately 4.5 to 5 million barrels, but this buffer is approaching its limit. #OilFutures#Trump#NavalBlockade#StraitOfHormuz#WTI#Brent#CrudeOil#EmergencyReserves#Hyperliquid#BTC#ETH

Crypto M - Crypto News

@CryptoM · Post #65223 · 12.04.2026 г., 04:14

🚀 Sky Co-Founder Rune Faces Losses in Leveraged Oil and S&P 500 Positions Sky co-founder Rune's leveraged positions have recently experienced significant losses. According to Odaily, data from Hyperbot indicates that Rune's sevenfold leveraged short position on the Nasdaq 100 was closed 16 hours ago. Currently, he holds long positions valued at approximately $518,000, including a 20-fold leveraged long position in WTI crude oil futures and a sevenfold leveraged position in Brent oil. Additionally, Rune maintains a 20-fold leveraged short position on the S&P 500, valued at $159,000. At present, all of Rune's positions are in a loss state, with the total value dropping to around $678,000, reflecting a floating loss of approximately $61,000 and an investment return rate of -22.68%. Rune initially entered these positions last month when oil prices were rising, achieving a floating profit exceeding $1 million. However, recent fluctuations and declines in oil prices have turned these positions from profit to loss. #Sky#Rune#LeveragedTrading#OilFutures#SP500#Nasdaq100#FinancialLoss#WTICrude#BrentOil#Investing#SKY

Crypto M - Crypto News

@CryptoM · Post #64472 · 09.04.2026 г., 01:47

🚀 Unusual Oil Market Activity Precedes U.S.-Iran Ceasefire Announcement On April 9, unusual trading activity occurred in the oil market just hours before U.S. President Donald Trump announced a ceasefire agreement with Iran. According to BlockBeats, at 19:45 GMT on Tuesday, investors unexpectedly sold 8,600 lots of Brent and U.S. oil futures during a non-active trading period, amounting to approximately $950 million. Less than three hours later, Trump officially announced a two-week ceasefire with Iran. This news caused oil futures to plummet by about 15% at Wednesday's opening, falling below the $100 mark. The strategic short positions resulted in significant profits within hours. This incident is not isolated; on March 23, similar unusual trading occurred 15 minutes before Trump announced a delay in striking Iranian energy facilities, leading to a 15% drop in oil prices. Since the escalation of U.S.-Iran tensions, daily oil trading volumes have doubled to millions of lots. Congressman Ritchie Torres has formally requested the SEC and CFTC to investigate these "suspicious" trades. Torres emphasized the need to examine the accounts involved due to the trades' speed, scale, and structure. Currently, CME and SEC have declined to comment, while CFTC previously stated it is "monitoring" market anomalies. #OilMarket#USIran#Ceasefire#TradingAnomalies#OilFutures#MarketManipulation#SEC#CFTC#BrentCrude#EnergyNews