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

Резултати

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

Пребарај: #trackready

当前筛选 #trackready清除筛选
Auto Life

@revheadcrypto · Post #209 · 31.07.2024 г., 14:10

🚗💨 Introducing the track-ready Cadillac CT5-V! 🎉 This powerful beast now features a Precision Package with enhanced suspension, including increased stiffness and reprogrammed adaptive dampers for an exhilarating ride on the track! 🏁✨ 🔧 Key Highlights: - Carbon-Ceramic Brakes for superior stopping power 🛑 - 6.2L V8 Engine producing an impressive 677 hp and 892 Nm of torque 💪🔥 - RWD for that ultimate driving experience! Get ready to unleash the power! 💥 #CadillacCT5V#PrecisionPackage#TrackReady#V8Power#Auto

Auto Life

@revheadcrypto · Post #594 · 21.10.2024 г., 07:40

🚗✨Introducing the Updated Porsche 911 GT3!✨🚗 The iconic 911 GT3 has received a stunning facelift, enhancing its road and track performance! 🏁 🔍What’s New? • Sleek Design: Updated lighting and bumpers inspired by the latest 911 models. • Interior Upgrade: A new digital dashboard and lightweight carbon seats with removable headrests for helmet use on the track! 🎧🏎️ • Powertrain: The legendary 4.0L flat-six engine remains at 510 hp, now compliant with Euro 6e standards, featuring two particulate filters and four catalytic converters. However, max torque has been adjusted from 470 Nm to 450 Nm. 🌟Options Galore: The GT3 will still offer the Touring package, featuring a discreet retractable spoiler and luxurious leather finishes instead of suede. 💰Pricing: • Starting at €209,000 in Germany 🇩🇪 • Starting at $224,495 in the USA 🇺🇸 🗓️Order Book Opening: Late this year! #Porsche911GT3#SportsCar#CarEnthusiasts#TrackReady#LuxuryPerformance#PorscheLife#Auto

Auto Life

@revheadcrypto · Post #383 · 25.08.2024 г., 13:29

🏁🚗 Toyota Unveils Upgraded Supra GT4 Evo2! 🌟 Get ready to hit the track with the latest iteration of the iconic Supra GT4, now available for €202,000!💰 This is the second upgrade, designed with valuable feedback from racers. 🔧 What's New: - Enhanced ABS for better control 🛠️ - Optimized ZF automatic transmission for smoother shifts ⚙️ - Improved cooling for the powerful 3.0L inline-six engine ❄️ - Refined cabin temperature for ultimate comfort during races 🌬️ #ToyotaSupra#GT4Evo2#Racing#TrackReady#CarEnthusiasts#AutomotiveInnovation#Supra#Sports

Auto Life

@revheadcrypto · Post #648 · 23.11.2024 г., 06:05

🚗💨Introducing the Porsche 911 GT3 RS with Manthey Racing Tuning Kit!💥🏁 Transform your track experience with a stunning upgrade for just $125,000! This kit significantly enhances stability and handling, generating over a ton of downforce at speeds of 285 km/h without increasing drag. ⚙️✨ 🔧Key Features: • 30% stiffer springs in the front and 15% in the rear • New adaptive dampers with dual valves for independent control • Lightning-fast response time (20-30 ms) managed by a custom module • Enhanced brake lines and optional high-durability racing pads 🏆 The Manthey Racing team is on a mission to shave seconds off the lap time at the legendary Nürburgring! ⏱️🌟 #Porsche911#GT3RS#MantheyRacing#TrackReady#PerformanceUpgrade#Nürburgring#CarEnthusiast#RacingLife#Supercar#Auto