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

Резултати

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

Пребарај: #jin10

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

@CryptoM · Post #65014 · 10.04.2026 г., 14:02

🚀 U.S. Inflation Rate Expectations for April Show Slight Increase The initial estimate for the U.S. inflation rate expectations over a five to ten-year period in April was reported at 3.4%, according to Jin10. This figure slightly missed the anticipated rate of 3.5% but showed an increase from the previous value of 3.20%. The data reflects ongoing concerns about inflationary pressures in the U.S. economy. #USInflation#InflationExpectations#Economy#USEconomy#InflationRate#Jin10

Crypto M - Crypto News

@CryptoM · Post #65377 · 13.04.2026 г., 03:06

🚀 PRECIOUS METALS | Chinese Gold Jewelry Prices Remain Stable On April 13, Jin10 reported that the prices of gold jewelry in China have shown little change compared to last Friday. According to Jin10, several brands have maintained their pricing within the range of 1,445 yuan per gram to 1,450 yuan per gram. #preciousmetals#gold#goldjewelry#China#goldprices#stableprices#Jin10

Crypto M - Crypto News

@CryptoM · Post #64966 · 10.04.2026 г., 12:33

🚀 Canada's March Unemployment Rate Matches Previous Value at 6.7% Canada's unemployment rate for March was reported at 6.7%, according to Jin10. This figure aligns with the previous month's rate and is slightly better than the anticipated 6.80%. The data suggests stability in the Canadian labor market during this period. #Canada#unemploymentrate#March2026#labor market #stability#Jin10

Crypto M - Crypto News

@CryptoM · Post #64788 · 09.04.2026 г., 23:54

🚀 Japan's March Domestic Corporate Goods Price Index Rises 0.8% Japan's domestic corporate goods price index for March increased by 0.8%, according to Jin10. This figure was slightly below the anticipated 0.9% and contrasts with the previous month's rate of -0.10%. The index measures the price changes of goods purchased by businesses, reflecting inflationary pressures within the corporate sector. #Japan#DomesticCorporateGoodsPriceIndex#March#Inflation#CorporateSector#PriceIncrease#Jin10

Crypto M - Crypto News

@CryptoM · Post #65017 · 10.04.2026 г., 14:03

🚀 U.S. February Factory Orders Remain Unchanged, Beating Expectations The U.S. factory orders for February showed no change, according to recent data. According to Jin10, the orders remained flat at 0%, surpassing the anticipated decline of 0.2%. The previous month's figure was revised from an initial 0.10% to 0%. #US#FebruaryFactoryOrders#Economy#FactoryOrders#BeatingExpectations#Jin10#USData

Crypto M - Crypto News

@CryptoM · Post #64846 · 10.04.2026 г., 03:47

🚀 Rongqi Technology Delivers Equipment for Meta Smart Glasses Rongqi Technology announced on an interactive platform that it has begun delivering assembly equipment for Meta's smart glasses. According to Jin10, the company's annual order volume will largely depend on the end sales of Meta's smart glasses and will be influenced by Meta's production schedule. #RongqiTechnology#Meta#SmartGlasses#Technology#EquipmentDelivery#Assembly#Jin10

Crypto M - Crypto News

@CryptoM · Post #64899 · 10.04.2026 г., 08:03

🚀 Italy's February Industrial Output Shows Modest Growth Italy's industrial production for February recorded a modest increase, with a seasonally adjusted monthly growth rate of 0.1%. According to Jin10, this figure fell short of the anticipated 0.5% growth and follows a previous decline of 0.60% in January. The data suggests a slower-than-expected recovery in Italy's industrial sector. #Italy#industrialproduction#February#growth#Jin10#economicdata#Italyeconomy#slowrecovery

Crypto M - Crypto News

@CryptoM · Post #65444 · 13.04.2026 г., 09:06

🚀 Investment Alert: Significant Premium Risk in Guotou Silver LOF Fund On April 13, Jin10 reported that Guotou Silver LOF Fund announced a significant premium in its secondary market trading price compared to the fund's net asset value. According to Jin10, investors are advised to be cautious of the premium risk in secondary market trading prices. Blind investments in fund shares with high premium rates may lead to substantial losses if the market price declines. The fund will suspend trading from the market opening until 10:30 on April 14, 2026, and will resume trading at 10:30. Redemption services will continue as usual during the suspension period. #InvestmentAlert#GuotouSilverLOFFund#PremiumRisk#SecondaryMarket#FundTrading#MarketSuspension#RedemptionServices#Jin10

Crypto M - Crypto News

@CryptoM · Post #65120 · 11.04.2026 г., 05:33

🚀 AI TRENDS | Baidu Smart Cloud Launches Embodied Intelligence Data Marketplace On April 11, Baidu Smart Cloud announced the launch of its Embodied Intelligence Data Marketplace (Beta version) in collaboration with several embodied intelligence companies, including Ling Sheng Technology, Fourier, Wei Tai Technology, Tuo Yuan Wisdom, Shu Tu Technology, and Song Ying Technology. According to Jin10, this marketplace introduces a pioneering hierarchical and scalable data labeling system designed to accelerate the large-scale implementation of embodied intelligence. Currently, Baidu Smart Cloud is providing services to over 30 embodied intelligence enterprises, including Zhi Yuan and Yu Shu. #AI#BaiduSmartCloud#EmbodiedIntelligence#DataMarketplace#LingShengTechnology#Fourier#WeiTaiTechnology#TuoYuanWisdom#ShuTuTechnology#SongYingTechnology#DataLabeling#TechCollaboration#Jin10#ZhiYuan#YuShu