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

Пребарај: #newcourse

当前筛选 #newcourse清除筛选
Andijan Development Center

@adceducate · Post #8453 · 09.04.2024 г., 12:58

🎤 Great news! 🌟 We are excited to announce the launch of our new public speaking course at ADC! 🏫 If you want to overcome the fear of public speaking, improve your presentation skills, or simply become a more effective communicator, our course is designed for you. With experienced instructors, a supportive environment, and a program focused on real-life success, we are here to help you find your voice and make an impact. 👩‍🏫👨‍🏫 Join us on a journey of development, confidence, and empowerment. Classes are starting soon, and spaces are limited, so book your spot today! ☎️For more details: 74 2261078 74 2281121 74 2281666 74 2276163 74 2252536 #PublicSpeaking#FindYourVoice#Empowerment#CommunicationSkills#Education#NewCourse#JoinUs

PRICE ACTION EXPERT

@priceactionexpert · Post #8031 · 25.01.2025 г., 11:43

https://x.com/priceactiongann/status/1870116486494466125 #nifty50#nifty#gold#xauusd New Course: "Price Calculus" - Master the Art of Market Analysis Comprehensive Learning Path: 1. Patterns: Dive into the most critical and frequently used patterns in trading. 2. Market Dynamics: Understand the branches of price calculus and their application under various market conditions. 3. Structural Analysis: Learn how patterns and structures dictate price movements. Top-Down Analysis: 1. Chart Mastery: Detailed analysis from higher to lower time frames. 2. Market Characteristics: Essential knowledge for long-term survival in trading. Gann Techniques: 1. Gann Square Utilization: Learn the intricacies of Gann Square and its application in charting. 2. Square Relationships: Explore the relation between multiple squares and their impact on price. 3. Square Numbers : Practical use of square numbers and the Square of 9. Integrated Approach: 1. Correlation of Concepts: How Gann's concepts integrate with price patterns to form a cohesive analysis method. 2. Mastery of Price Calculus: Combine all elements into a complete methodology for mastering price movements. Contact in Telegram and X alone: Available by the end of January or first week of 2025. Give your maximum support thanks 🙏❤️🙏 #banknifty#stockmarket#stocks#gann#trading#priceaction #newcourse#course#astrology#financialastrology#numerology

PRICE ACTION EXPERT

@priceactionexpert · Post #7958 · 20.12.2024 г., 14:38

https://x.com/priceactiongann/status/1870116486494466125 #nifty50#nifty#gold#xauusd New Course: "Price Calculus" - Master the Art of Market Analysis Comprehensive Learning Path: 1. Patterns: Dive into the most critical and frequently used patterns in trading. 2. Market Dynamics: Understand the branches of price calculus and their application under various market conditions. 3. Structural Analysis: Learn how patterns and structures dictate price movements. Top-Down Analysis: 1. Chart Mastery: Detailed analysis from higher to lower time frames. 2. Market Characteristics: Essential knowledge for long-term survival in trading. Gann Techniques: 1. Gann Square Utilization: Learn the intricacies of Gann Square and its application in charting. 2. Square Relationships: Explore the relation between multiple squares and their impact on price. 3. Square Numbers : Practical use of square numbers and the Square of 9. Integrated Approach: 1. Correlation of Concepts: How Gann's concepts integrate with price patterns to form a cohesive analysis method. 2. Mastery of Price Calculus: Combine all elements into a complete methodology for mastering price movements. Contact in Telegram and X alone: Available by the end of January or first week of 2025. Give your maximum support thanks 🙏❤️🙏 #banknifty#stockmarket#stocks#gann#trading#priceaction #newcourse#course#astrology#financialastrology#numerology