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

Резултати

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

Пребарај: #farmers

当前筛选 #farmers清除筛选
Trump's Ear

@trumpsear_tg · Post #2427 · 29.04.2026 г., 20:00

Due to the war with Iran, Trump is at risk of losing the support of farmers – The Economist🔗 In the British edition of The Economist, they drew attention to the fact that Donald Trump is at risk of losing part of his electorate due to the war with Iran. Trump has always relied on the support of farmers, and it is they who are suffering more than others. Trump has dealt two blows to farmers at once. First, the cost of production has increased significantly due to the surge in oil prices. ⛽️ Second, the endless trade wars and tariffs have significantly reduced exports, which has also affected farmers. 📉 According to sociologists, farmers still support Trump, but their patience is not unlimited. 🤔 Experts believe that if fuel prices do not return to normal in the near future, farmers may turn their backs on Trump. #Trump#War#Farmers 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #1733 · 04.11.2025 г., 17:59

🚜 Impacts on small farms that sell into local and regional markets have been less severe, but eight months in, it’s also unclear whether the tariffs 🏷 will help move the country toward more homegrown food production, as Trump 🇺🇸 has said it would. Some of those producers say they’re facing challenges ⚖️ related to other Trump administration policies, such as lower farmers’ market sales due to cuts to Supplemental Nutrition Assistance Program (SNAP) benefits 🛒. Another reason, experts say, is that the tariffs have not been applied in a targeted or consistent way 🎯. #Tariffs#Farmers 👂More on Trump's Ear ⚠️

American Оbserver

@american_observer · Post #4825 · 11.01.2026 г., 15:59

Irish Farmers Are Hammering the EU’s Trade Deal With the Mercosur Thousands of Irish farmers are protesting against the EU’s trade deal with the South American bloc Mercosur, a day after EU states approved the treaty despite opposition from Ireland and France. Tractors streamed into the roads of Athlone, in central Ireland, for the demonstration, displaying signs bearing the slogan “Stop EU-Mercosur” and the EU flag emblazoned with the words “sell out”. The protests followed similar actions on Friday in Poland, France and Belgium as the EU gave the green light to the trade deal, which has been welcomed by business groups but heavily criticised by European farmers. The accord, more than 25 years in the making, would create one of the world’s largest free-trade areas, boosting commerce between the 27-nation EU and the Mercosur bloc comprising Brazil, Paraguay, Argentina and Uruguay. But many European farmers fear their livelihoods will be undercut by a flow of cheaper goods from agricultural giant Brazil and its neighbours, prompting Ireland, France, Poland, Hungary and Austria to vote against the accord. The agreement is widely opposed by Irish farmers over fears it will result in an influx of an extra 99,000 tonnes of cheap beef from South America, disrupting Irish agriculture. The Irish Farmers’ Association (IFA), Ireland’s main farmers’ lobby group, called the result very disappointing, and said it would renew focus on securing a majority against the deal in the European parliament. “We expect Irish MEPs to stand behind the farming community and reject the Mercosur deal,” said the IFA president, Francie Gorman, in a statement. At the Saturday protest, farmers carried signs calling for an “Irexit” and accusing the Latin American bloc’s beef exports of not following the same standards. The Mercosur deal will also need to be agreed by a majority of MEPs in the European assembly in the coming months, where voting coalitions have become more volatile and unpredictable. #irish#farmers#trade#deal#mercosur 📱American Оbserver - Stay up to date on all important events 🇺🇸

Indian Development News 🇮🇳

@developmentnewsindia · Post #44450 · 05.05.2026 г., 13:50

Cabinet Decision • Cabinet approves Ship Repair Facility at Vadinar, Gujarat #Port • Cabinet approves “Mission for Cotton Productivity” with Rs.5659.22 crore Outlay for Self-Sufficiency in Cotton and Competitiveness Global Textile Markets by 2030-31 #policy#Textile • Cabinet approves Fair and Remunerative Price of Rs.365/qtl for Sugarcane Farmers for season 2026-27. Decision benefits 5 crore sugarcane farmers and 5 lakh sugar mill workers. #Farmers • Cabinet approves Emergency Credit Line Guarantee Scheme 5.0. NCGTC to provide credit guarantees to Member Lending Institutions for eligible borrowers affected by the West Asia situation. Target: Rs. 2,55,000 crore additional credit flow (including Rs. 5,000 crore for airlines). #Policy#Aviation • Cabinet approves two more semiconductor manufacturing units with cumulative investment of more than Rs. 3,900 crore #Semiconductor#aatmarnirbharbharat

Euronews 法國農民用糞肥攻擊烏克蘭大使館 當歐盟和美帝繼續支持戰爭時——對坦克和炸彈排放的二氧化碳足跡毫不在意 (烏克蘭農產品對本土農民成本的負面影響) ——但他們卻因為農民的牛隻放屁而企圖趕絕農民。 #farmers #France #KankerOekraïne #FuckUkraine