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

Резултати

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

Пребарај: #conceptcar

当前筛选 #conceptcar清除筛选
Car News

@car_news · Post #71 · 27.05.2024 г., 14:00

🚘 Skytop with "the most powerful V8 engine ever" unveiled The latest BMW Skytop has made its debut at the Villa d'Este 2024 classic car show on the shores of Lake Como. The two-seater car has a rigid roof that can be removed manually and the rear window can be raised and lowered with a button. "Chrome shadow effect" is designed specifically for the Skytop. According to the manufacturer, the car has been given the "most powerful V8 engine", which is supposedly the same 4.4-litre 625bhp engine used in the M8 Competition. In creating the Skytop, BMW decided to pay homage to the brand's classic models such as the Z8 and 503. Although the car is only a concept car at the moment, BMW has not ruled out the possibility of a limited production run. @CarsNews #BMW#conceptcar#roadster

Auto Life

@revheadcrypto · Post #154 · 23.07.2024 г., 15:33

✨ Presenting the Cadillac Sollei convertible with a stunning mushroom-based interior! 🍄 This concept, based on the production platform of the electric Celestiq, features a unique body design and interior finish using five different wood types and the bio-material Fine Mycelium, including mushroom mycelium. The Sollei showcases the revival of the classic Manila Cream color from the late 1950s. While specific technical details are yet to be revealed, the production Celestiq is equipped with electric motors producing around 600 horsepower. #Cadillac#Sollei#Celestiq#ElectricCar#Auto#ConceptCar🚗💫

Auto Life

@revheadcrypto · Post #582 · 16.10.2024 г., 07:18

🚗✨ Introducing the Alpenglow Hy6 by Alpine! 🌟 This stunning concept car is the evolution of the Alpenglow Hy4, showcasing a powerful V6 engine that delivers an impressive 730 hp and 770 Nm of torque—all powered by hydrogen! 💨🔋 Built on a lightweight carbon LMP3 chassis, the Hy6 promises thrilling performance and cutting-edge technology. Production is on the horizon, with the possibility of an all-electric powertrain on the assembly line! ⚡️🌍 #Alpine#AlpenglowHy6#HydrogenPower#ElectricFuture#CarEnthusiast#ConceptCar#Innovation#Auto🚀