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

Резултати

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

Пребарај: #nablus

当前筛选 #nablus清除筛选
RNN Mirror

@Palresistmirror · Post #94833 · 15.05.2026 г., 14:37

🚨 Fahd Zaidan Oweis (15) ascended to martyrdom after he was shot and killed by the IOF in the town of Al-Lubban ash-Sharqiya, south of #Nablus. Glory to the martyrs.

Hashtags

RNN Mirror

@Palresistmirror · Post #94379 · 08.05.2026 г., 16:52

🚨 Settlers set fire to a Palestinian home near the entrance of the village of Al-Lubban ash-Sharqiya, south of #Nablus.

Hashtags

RNN Mirror

@Palresistmirror · Post #94335 · 07.05.2026 г., 18:00

🚨 The Committee of Families of Political Detainees in the West Bank reports critical violations and systematic abuse occurring within the Palestinian Authority's Al-Junaid Prison in #Nablus. • All prisoners are exposed to psychological and physical terrorism while in custody. • Documented cases include the severe torture of detainee Suleiman Al-Shami, who sustained burns on his feet due to brutal interrogation methods. • Over 70 political detainees remain imprisoned despite explicit court orders issued for their release. • The committee holds the security apparatus fully responsible for the physical and psychological safety of the detainees and demands their immediate, unconditional release.

Hashtags

RNN Mirror

@Palresistmirror · Post #94142 · 03.05.2026 г., 12:02

🚨 Nayef Firas Ziad Samaro (26 years old), has ascended to martyrdom after he was shot by the IOF during a military raid in #Nablus. The Palestinian Red Crescent reported a total of 45 injuries during the incursion into the city center. The casualties include: • 5 injuries by live ammunition, including the martyr. • 40 injuries due to tear gas inhalation, with 10 requiring hospitalization. Glory to the martyrs.

Hashtags

RNN Mirror

@Palresistmirror · Post #93798 · 24.04.2026 г., 16:09

🚨 The Commission of Prisoners and Ex-Prisoners Affairs warns of a systematic campaign of abuse against Palestinian prisoner Amjad Awad, held in "Gilboa" prison. Awad, from the town of Awarta in #Nablus, has been detained since April 2011 and is serving five life sentences and seven additional years. The Commission reported that IOF prison authorities are subjecting Awad to: • Systematic physical and psychological violence, including beatings with metal batons, causing fractures. • Deliberate targeting of his head and face, resulting in broken teeth. • Attacks with rubber-coated metal bullets. • Persistent violent raids on his cell. During a legal visit in February, prison authorities refused to remove his restraints, limiting the consultation to ten minutes and forcing him to communicate via a telephone handset placed on his shoulder. The Commission emphasizes that these conditions pose a severe and immediate threat to his life, amid ongoing retaliatory measures by the occupation.

Hashtags

Resistance News Network

@palestineresist · Post #93690 · 08.04.2026 г., 15:35

🚨 Settlers kidnapped the child Usayd Mahmoud Ghanem from the town of Qabalan, taking him to the "Avitar" settlement built on Jabal Sobeih in the town of Beita, south of #Nablus.

Hashtags

Resistance News Network Backup

@RNN_Backup · Post #62903 · 13.10.2024 г., 21:11

🚨 Confrontations have broken out between resistant youth and the IOF invading Beit Furik, east of #Nablus. The Palestinian Red Crescent reported dealing with two live bullet injuries and four tear gas injuries including a two-month-old infant. Resistant youth targeted an IOF vehicles with Molotovs.

Hashtags

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