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

Резултати

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

Пребарај: #busification

当前筛选 #busification清除筛选
Russian Consulate in Cape Town

@rusconct · Post #2422 · 08.04.2025 г., 18:47

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova(Moscow, April 3, 2025) 🔹 Russia's Foreign Minister Sergey Lavrov's schedule 🔹AFU strikes on Russia’s energy infrastructure 🔹Kiev regime crimes 🔹 Third anniversary of the Bucha hoax 🔹 Busification in Ukraine 🔹 New facts about Nazi criminals in Canada 🔹 Silence of the West regarding the attacks on the "Nord Streams" 🔹Russia’s humanitarian aid to Myanmar 📰Read 📺Watch *** The Kiev regime, having completely lost its sense of self-preservation and connection to reality, in its desperate attempt to disrupt the ongoing Russian-American dialogue at any cost, continues to employ blatantly terrorist methods, striking Russian energy infrastructure on a daily basis. At the same time, it is clear that these attacks hold no military value. The actions of the Kiev regime not only constitute war crimes but also represent a deliberate effort to sabotage any peace initiatives. The assurances given by Zelensky that they would honour the moratorium were broken on the very same day. #Ukraine#Busification Even Ukraine’s ombudsman could not turn a blind eye to rampaging corruption and arbitrary conduct by draft centres. In his report, he admitted the mass and systemic nature of human rights violations and abuse of power. He mentions evidence of using force, weapons and special devices against draftees, as well as forceful signing of documents, prevention of access to legal aid for these victims of so-called “busification”, a new term that refers to newly caught males aka future conscripts being put with use of force into buses against their will. Attorneys have been replaced by plain mobsters who charge thousands of dollars for the service of “rescuing” draftees. #Canada#Nazis A group of American historians led by Jared McBride, a history professor at the University of California, has recent gained access to typed and handwritten files with the names of Nazis and their accomplices who were given asylum in Canada, which are available online. The list was stored at the Library and Archives Canada. There are 774 names on it. They have mentioned the names of especially notorious persons, such as an founder of the 14th Galicia Division Vladimir Kubiyovich and Helmut Oberlander from the death squads of Sonderkommando 10a (Sk 10a), who participated in the massacres of children in the Krasnodar Krai in 1942-1943. This story is yet another reminder of the fact that the Canadian authorities encouraged Nazi criminals and their accomplices from collaboration units, including those guilty of the Holocaust,to move to Canada starting in 1948. These people were not called to account for their crimes but enjoyed protection and patronage.