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

Резултати

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

Пребарај: #nile

当前筛选 #nile清除筛选
Addis Standard

@addisstandardeng · Post #21196 · 26.01.2026 г., 14:53

News: #US Deputy Secretary of State begins regional tour in #Egypt, discusses #Nile water security US Deputy Secretary of State Christopher Landau on Sunday began a regional tour in Egypt, meeting with officials to discuss Nile water security, developments in the Horn of Africa, and efforts to secure a ceasefire in #Sudan. Landau held talks with Egypt’s Foreign Minister Badr Abdelatty in Cairo, where discussions covered political and economic cooperation, as well as developments in Sudan, the Horn of Africa, and the Nile water file, according to a statement from Egypt’s Foreign Ministry. No official statements have been released by the US State Department or the US Embassy in Cairo regarding the discussions between the two officials. Egyptian media reported that Abdelatty emphasized the Nile as a vital lifeline for Egypt, where citizens face severe water scarcity. .... https://www.facebook.com/AddisstandardEng/posts/pfbid0aVF6j8rAR7Hs6z3yaR2pCJbgwoxJ2X8Xrp7nsNwdrQMB78beBhjh6wyjE9QZtmUGl

Borkena

@borkena · Post #5735 · 20.01.2026 г., 06:56

The Nile’s New Folly: Why Ethiopia’s Return to the Negotiating Table May Spell Surrender, Not Success! (Commentary) https://borkena.com/2026/01/19/the-niles-new-folly-why-ethiopias-return-to-the-negotiating-table-may-spell-surrender-not-success-a-commentary/#Ethiopia#News#Egypt#Trump#Nile

Addis Standard

@addisstandardeng · Post #21191 · 26.01.2026 г., 10:59

#Commentary: When Mediation Becomes Intimidation: #GERD, Trump, and #Ethiopia’s sovereign rights The Grand Ethiopian Renaissance Dam (GERD) is now fully operational, shifting the Nile dispute from theory to practical governance and transforming Ethiopia’s energy sector. However, Hassen Mama Muse argues that this progress is threatened by “biased external interference,” particularly from #US President Donald Trump. He describes Trump’s renewed mediation offer as not a diplomatic opening but “a form of coercive diplomacy.” Hassen points to Trump’s rhetoric—labeling the dam as “stopping the #Nile” and suggesting #Egypt should “blow up the dam”—as clear evidence that he cannot act as “a neutral mediator.” Engaging in such a process, the author cautions, would force Ethiopia to “compromise” its lawful rights. https://addisstandard.com/?p=54740

Addis Standard

@addisstandardeng · Post #21639 · 07.03.2026 г., 07:57

The #Nile dam standoff is heating up, and #Israel is caught between allies – analysis #US President Donald Trump is widely admired in Israel for achieving what no other leader could: bringing home #Gaza hostages and imposing a ceasefire on what seemed to be an endless war. Now it appears the self-appointed head of the new Board of Peace may be about to challenge the odds again, this time with a planned plunge into the waters of the Nile. In January, Trump formally notified #Egyptian President Abdel Fattah al-Sisi that the US is renewing efforts to resolve the longstanding dispute between Egypt, joined by #Sudan, on the one hand, and #Ethiopia on the other, over the longest river in the world. The most noteworthy aspect of the planned mediation is that the US is firmly on Egypt’s side, as it had been in past US mediation, which Ethiopia broke off in 2020. This means that to make a Trumpian “deal,” the president’s instinct may be to try to use ....... https://www.jpost.com/jerusalem-report/article-888720

Addis Standard

@addisstandardeng · Post #21071 · 14.01.2026 г., 12:25

News: #Cairo expands military presence in #Somalia over fears breakaway Somaliland could enable #Israeli-#Ethiopian axis – The national #Egypt has broadened its military mission in Somalia, prioritizing the protection of Somali President Hassan Sheikh Mohamud’s government amid concerns that the breakaway region of #Somaliland could facilitate an Israeli-Ethiopian axis in the Horn of Africa, Abu Dhabi-based newspaper The National, citing its sources, reported. The report said Cairo’s expansion reflects fears that Israel’s recognition of Somaliland last month may give it a strategic foothold, potentially allowing coordination with Ethiopia, with which Egypt has long-standing disputes over #Nile waters. While some analysts downplay the risk of escalation, sources told The National that Egypt views Israeli and Ethiopian engagement in the Horn of Africa as a serious national security threat, particularly regarding the Nile and strategic maritime routes. Read more: https://addisstandard.com/?p=54540

Borkena

@borkena · Post #5849 · 24.02.2026 г., 21:13

The Foundational Elements for an Optimal Ethiopian Nile Basin Treaty Covering Water Allocation and Basin Management. Read more. https://borkena.com/2026/02/24/nile-the-foundational-elements-for-an-optimal-ethiopian-nile-basin-treaty-covering-water-allocation-and-basin-management/#NileBasin#Nile#Ethiopia#Egypt#water#river

Addis Standard

@addisstandardeng · Post #21305 · 04.02.2026 г., 11:08

#Opinion: Encircled and Exposed: #Berbera as #Ethiopia’s last strategic exit Ethiopia’s status as the Horn’s stabilizer has eroded, leaving the nation “constrained, exposed, and increasingly boxed in” by unfriendly neighbors, writes Mohamed Guleid. He cautions that #Djibouti, Ethiopia’s maritime lifeline, has compromised its neutrality by agreeing to host an #Egyptian military presence, while #Eritrea and #Somalia align with #Cairo over the #Nile dispute. Allowing adversaries to shadow its main supply route crosses a “strategic red line.” For a nation of 120 million, “diversification is no longer a luxury.” Guleid argues the solution lies in Somaliland, highlighting that the Berbera Port and its corridor are operational but underused. He notes, “Recognition of Somaliland would change Ethiopia’s position overnight,” expanding sea access, easing pressure, and restoring strategic leverage. https://addisstandard.com/?p=54982

12
ПретходнаСтраница 1 од 2Следна