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

Резултати

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

Пребарај: #trains

当前筛选 #trains清除筛选

✅ 10 TRAINS🆓 • Personal Use License. #coloringpage#trains#speed#kids ◆═════● PREMIUM ●═════◆ ⭐ TRAINS: Coloring Book PDF Ready To Print. • 40 Trains. • Test Color Page. • Print-Ready PDF 8,625x11,250 in. • PNG 4215 x 5500 px High-quality. • Remove watermark. • Commercial Use License. 7.99€5.99€ 👉Buy Now🛒

Bali News

@balinews · Post #465 · 16.07.2025 г., 07:45

🪁Kites paralyzed operations at Jakarta airport 📰 In Jakarta, kites disrupted the takeoffs and landings of 21 aircraft: planes had to circle back or change airports. 🚄 Similar incidents have already delayed Whoosh high-speed trains 169 times in six months and cause annual accidents on Bali's power grids. ⛔️ The authorities remind the public that kites may only be flown away from airports, railways, and power lines. #safety#airport#trains@BaliNews

Voir de ses propres yeux

@voir_yeux · Post #11549 · 30.01.2026 г., 19:48

🇬🇧Un incendie dans le nord de Londres provoque de nombreuses perturbations sur les lignes de trains, rapporte Sky News. Au total, environ 70 pompiers ont été impliqués dans l'extinction de l'incendie dans le quartier de Camden. #londres#incendie#trains

American Оbserver

@american_observer · Post #4894 · 19.01.2026 г., 18:03

Two High-Speed Trains Collided in Southern Spain At least 39 people have been killed and 24 others seriously injured after two trains collided in southern Spain on Sunday night in what the prime minister, Pedro Sánchez, called “a night of deep pain for our country”. A high-speed Iryo train travelling from Málaga to Madrid derailed near the municipality of Adamuz in Córdoba province, crossing on to the other track where it hit an oncoming train, Adif, Spain’s rail infrastructure authority, posted on X. The second train, which was operated by the state rail company, Renfe, also derailed and went down an embankment, authorities said. The accident happened about 10 minutes after the Iryo left Málaga at 6.40pm (1740 GMT), Adif said. “Approximately 300 people were on board at the time of the accident,” Iryo said. “The derailment affected cars six through eight. The Guardia Civil and firefighters are currently working intensively at the scene to evacuate all passengers and have set up a joint emergency response team. “Iryo deeply regrets the incident, has activated all its emergency protocols, and is collaborating closely with Adif, Renfe, and the relevant authorities to determine the causes and manage the situation as effectively as possible.” Another witness told the public broadcaster RTVE that one of the carriages of the first train had completely overturned. An unidentified passenger on the second train – which was going from Madrid to Huelva – told public broadcaster TVE: “There were people screaming, their bags fell from the shelves. I was travelling to Huelva in the fourth carriage – the last, luckily.” Television images showed medical crews and fire services at the scene. Spain’s transport minister, Óscar Puente, said the cause of the accident had yet to be established. Speaking at a press conference at Atocha station in Madrid, he added it was “really strange” that a derailment should have happened on a straight stretch of track. This section of track was renewed in May, he said. Puente said most of those killed and injured had been in the first two carriages of the second train. #trains#collided#spain#puente#Iryo 📱American Оbserver - Stay up to date on all important events 🇺🇸