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

Пребарај: #arrested

当前筛选 #arrested清除筛选
American Оbserver

@american_observer · Post #4989 · 29.01.2026 г., 12:59

Iran: More than 42,300 People Have Been Arrested, Killed and Tortured Doctors are being arrested in Iran for helping save the lives of some of the tens of thousands injured during Iran’s brutal crackdown on anti-regime protests, with at least one surgeon now at risk of being sentenced to death. The arrests and death sentence are part of a campaign of “revenge”, say human rights groups, after healthcare workers and doctors refused to ignore the plight of badly injured protesters shot or stabbed at close range. An Iranian surgeon, Alireza Golchini, 52, from the central city of Qazvin, has been charged with “moharebeh” (waging war against God), which can carry the death penalty, according to the Norway-based rights group Hengaw. The US state department yesterday called for his release. The US-based Human Rights Activists News Agency, whose figures have been reliable during previous crackdowns, says it has verified more than 6,000 dead and has more than 17,000 more recorded deaths under investigation. “He was arrested in a violent manner in front of his wife and son, who is only 11. They beat him up so badly during arrest, they broke his arm, ribs and dragged him out of his home. My family is terrified,” said Med dr. Golchini. A few days before his arrest Golchini, who also treated protesters during the 2022 Woman, life, freedom protests, had posted a note on his social media, says Nima, sharing his number and asking injured patients to contact him for treatment. “All he did was his duty of saving lives as a medical doctor. He had sworn to save people’s lives. How can any doctor not stand by his oath? I am worried not only for him, but also for other healthcare workers who have been arrested for simply standing by their sworn oath.” Iranian authorities have not publicly commented on Golchini’s detention, nor have they confirmed any charges against him. But Iran’s judiciary chief, Gholamhossein Mohseni Ejei, has urged authorities not to show any leniency towards protesters. “We should not remain silent in the face of those who seek to exploit the situation and disrupt the security and calm of the people,” he said. IHRNGO also reported the arrest of a volunteer first responder who had turned his home into an improvised medical shelter. According to the source, he was detained on 14 January after security forces raided his house, where he had provided care to more than 20 injured protesters, two of whom later died. “He was taken away in an extremely brutal manner and was severely beaten,” a source told IHRNGO, adding that security forces smashed the windows of the house, destroyed the interior and severely damaged his car during the raid. At least 42,324 arrests have been made across the country with limited information on their fate, according to the US-based Human Rights Activists in Iran, which says the regime is putting pressure on medical networks as a means of reducing support for the injured. A statement published yesterday by the US state department on X demanded the release of Golchini and “all the brave doctors who have helped their fellow countrymen”. It continued: “President Trump has clearly stated that no executions should take place in Iran and that there will be consequences if the government takes such actions.” #iran#tortures#killed#arrested#doctors 📱American Оbserver - Stay up to date on all important events 🇺🇸