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 слични објави

Пребарај: #drivingexperience

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

@revheadcrypto · Post #23 · 01.07.2024 г., 14:59

🔥✨Unleash the Power of Aston Martin Valiant!✨🔥 Embark on a journey of power and precision with the Aston Martin Valiant, driven by a formidable 5.2-liter V12 engine with twin turbocharging, delivering an impressive 745 horsepower (compared to 715 in the Valour). Feel the exhilarating torque of 753 Nm propelling you forward with each twist of the throttle. Get ready to ignite your senses! This fusion of power and performance is harnessed by an exclusive six-speed manual transmission, seamlessly transferring power to the rear wheels, creating an unmatched driving experience. Trust the Aston Martin Valiant to experience the exceptional blend of technology and emotion on the road. Dive into the true embodiment of power, style, and automotive mastery with the Aston Martin Valiant! #AstonMartin#Valiant#V12Power#Performance#DrivingExperience

Auto Life

@revheadcrypto · Post #561 · 09.10.2024 г., 08:59

🚗✨Lexus Unveils Upgraded LC Coupe and Convertible!✨🚗 Since its debut in 2017, the Lexus LC family has received a sleek exterior makeover and new interior materials. But that's not all! The updated models now feature a stiffer chassis, thanks to additional braces installed under the floor near the front and rear axles, enhancing overall handling. 🏎️💨 Under the hood, the Lexus LC offers a powerful lineup: a 5.0L V8 engine producing 477 hp or a hybrid V6 powertrain with a 3.5L engine delivering 359 hp. 🔥🔋 #LexusLC#LuxuryCars#CarEnthusiast#DrivingExperience#AutoNews#V8Power#Auto

Auto Life

@revheadcrypto · Post #368 · 21.08.2024 г., 18:08

🚗✨ Updated Audi RS 3: Hatchback and Sedan Debut! ✨🚗 🔧 The facelift brings a fresh look with new headlights featuring a checkered flag design for the daytime running lights, which can be customized! 🏁 🛠️ Inside, you’ll find a revamped steering wheel that’s now flat on both the top and bottom, complete with two new red buttons to activate RS Performance and RS Individual modes! 🔴🔵 Optional carbon bucket seats offer enhanced support for those thrilling drives. 🪑💨 💥 The Audi RS 3 retains its powerful 2.5-liter turbocharged five-cylinder engine, delivering 400 hp and 500 Nm of torque, paired with a seven-speed dual-clutch transmission and all-wheel drive. ⚡️💪 It still rockets from 0 to 100 km/h in just 3.8 seconds, with a top speed of 290 km/h! 🚀 🔄 Engineers have fine-tuned the torque splitter algorithm (RS Torque Splitter) and optimized chassis settings, allowing drivers to tackle corners at higher speeds! 🏎️💨 #AudiRS3#Performance#CarEnthusiast#TurboPower#LuxuryCars#DrivingExperience#Innovation#Auto🚘💖

Auto Life

@revheadcrypto · Post #433 · 04.09.2024 г., 16:41

🚗✨ Introducing the new Aston Martin Vanquish with a powerful V12! 🌟 🔧 Equipped with a twin-turbo engine delivering an impressive 835 hp and 1000 Nm of torque (just edging out the Ferrari 12Cilindri at 830 hp)! 💪 ⚡️ Accelerating from 0 to 60 mph (96 km/h) in just 3.2 seconds, this flagship beauty boasts a top speed of 344 km/h! 🏁 🛠️ The Vanquish features a brand new body with a 75% increase in stiffness compared to the DBS. It comes with carbon-ceramic brakes and cutting-edge Bilstein DTX adaptive dampers for an unparalleled driving experience! 🚀 📅 Deliveries of this grand tourer will begin in Q4, with a starting price of $420,000. 💰 #AstonMartin#Vanquish#V12#LuxuryCars#Performance#CarEnthusiasts#Supercar#DrivingExperience#Auto