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 слични објави

Пребарај: #sunni

当前筛选 #sunni清除筛选

伊斯蘭恐懼症 在西方單邊主義宣傳侵佔一定空間的國際大媒界, 伊斯蘭恐佈症在西方社會及親西方群體宣傳得非常成功, 不多不少也是遜尼派人口之中的極右派(Wahabism) ,接近(原教旨主義) Wahabism 思想及遜尼派社會一些人不良行為而被宣傳加工所導致。 #ABC #Sunni #Islam #Muslim

Graduates of #Deoband and #Wahhabi schools killed 12 people last night. In the terrorist attack on a police station in the Sistan region of Iran, 12 people were martyred and many were injured. The headquarters of the Jaish-ul-Adl terrorist group is in #Pakistan. They have been taught to be kind to infidels, but if you kill 5 Muslims, you will go to heaven. The funds of these groups are provided by America and Israel. Pakistan is a breeding ground for #Sunni terrorists. https://t.me/YediotNewsChat

The picture of the dead body of one of the #Sunni terrorists who invaded Iran's border post last night. They were wearing the uniform of the Iranian military forces. The rest of the #Wahhabi terrorists fled to Pakistan. They hide in the deserts of Pakistan for the next surprise attack on Muslims. Pakistan is the center of production of Wahhabi terrorists. The Wahhabis came to power in #Saudi_Arabia in 1922 by the #British. https://t.me/YediotNewsChat

Today, the funeral ceremony of 280 unknown martyrs was held in some cities of Iran with the presence of the president. The bodies of these martyrs have recently been discovered from under the ground in war zones. Despite the "DNA" test, some of the martyrs are still unknown. Because they don't know where their families are. In 1980, Iraq attacked Iran at the instigation of the #United_States with the cooperation of all #Sunni Arab countries to overthrow the Iranian Shiite government, but they did not achieve their goal. This war imposed on Iran was carried out with the participation of 80 countries and ended in 1988 with one million dead and wounded. Today, there is neither Saddam Hussein nor the terrorist #Baath Party of Iraq. But the more powerful Islamic Republic is fighting the Israeli terrorists in #Jerusalem since 1988. https://t.me/YediotNewsChat

Moscow Photographer

@moscowphotog · Post #1489 · 08.03.2025 г., 13:48

"A new massacre against the #Alawites in the city of #Latakia, in the #Dattour neighborhood, al-Mazar junction. I beg all segments of the Syrian people, especially the #Druze, #Kurds, and any remaining members of the #Sunni community who still have a little humanity left in their hearts, to take to the streets in protest to stop these massacres against the innocent. These #massacres are not from yesterday, they are happening today, and as of moments ago, they are still being carried out by Syrian members of Hay’at Tahrir al-Sham #HTS, wearing their official uniforms. Please, save those who remain." https://t.me/CoastSyrian24/771