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

Резултати

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

Пребарај: #defence

当前筛选 #defence清除筛选
Indian Development News 🇮🇳

@developmentnewsindia · Post #44446 · 05.05.2026 г., 11:00

BEL secured a ₹1,476 crore Ministry of Defence contract for the Indian Army to supply the Ground Based Mobile Electronic Intelligence System (GBMES). This fully indigenous system, designed by Defence Electronics Research Laboratory (DLRL), Hyderabad, and manufactured by BEL, detects, classifies, and locates radar signals, while intercepting and analysing communication signals. #Defence

Hashtags

Indian Development News 🇮🇳

@developmentnewsindia · Post #44351 · 03.05.2026 г., 05:17

India to manufacture ~140 AMCA stealth jets at Puttaparthi; Andhra allots 600 acres to Defence Research and Development Organisation. Project size ~₹1 lakh crore; final assembly/testing hub near Aeronautical Development Agency Bengaluru base. #Defence

Hashtags

Indian Development News 🇮🇳

@developmentnewsindia · Post #44278 · 01.05.2026 г., 08:09

BREAKING LR-AShM enters Phase-II trial: India successfully test fires Long Range Anti-Ship hypersonic Missile from a #defence facility off Odisha coast. Indigenously developed by DRDO, the two-stage hypersonic glide weapon can strike moving and static naval vessels at distances up to 1,500 km and boasts high-accuracy terminal manoeuvres. Travelling at a speed of over Mach 5, it can also target warships or land surfaces. The missile will have multiple warhead configurations.

Hashtags

Indian Development News 🇮🇳

@developmentnewsindia · Post #44267 · 01.05.2026 г., 02:34

Paras Defence & Space Technologies has won a significant Rs 7.72 crore contract from DRDO for developing advanced Ku/C-Band Satellite Communication Phased Array Antennas designed for airborne defence applications. The project has a comprehensive timeline extending until April 29, 2028, reflecting the sophisticated nature of the satellite communication technology development required for modern defence operations. Source #Defence

Hashtags

Indian Development News 🇮🇳

@developmentnewsindia · Post #44225 · 30.04.2026 г., 09:27

Report- Speaking at the ANI National Security Summit 2.0 in New Delhi, #Defence Secretary Shri Rajesh Kumar Singh said the procurement process for the AMCA is underway and a Request for Proposal (RFP) is expected to be issued soon to shortlisted private sector players. He also indicated that India is also exploring collaboration on sixth-generation fighter aircraft, given the massive investment such programmes require. “We’ve made it clear… that we are interested and we could consider partnering them for a sixth generation fighter program. Let’s see what the response is,” he said.

Hashtags

Indian Development News 🇮🇳

@developmentnewsindia · Post #44194 · 29.04.2026 г., 14:08

Just in: The DRDO and the Indian Navy jointly and successfully conducted the first 'salvo launch' of the 'Naval Anti-Ship Missile-Short Range' (NASM-SR) from an Indian Navy helicopter platform off the coast of the Bay of Bengal in Odisha. #Defence

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна