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

Резултати

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

Пребарај: #englishgrammar

当前筛选 #englishgrammar清除筛选
BBC Learning English

@english_bbc_learning · Post #3702 · 04.10.2025 г., 08:21

🤔 Do you know how to use the phrase ‘bite the bullet’? Here’s an example sentence: “I decided to bite the bullet and start cleaning up after the party.” 🎉 ⁣ 💬 Can you write another example sentence?⁣ ⁣ EXTRA: to learn other useful expressions like this, click on our link in bio. ⁣ #LearnEnglish#Idioms#EnglishGrammar

BBC Learning English

@english_bbc_learning · Post #3721 · 11.10.2025 г., 16:28

🥗Salad? 🥕Carrots? 🍳Eggs? Do you like food as an adult that you hated when you were young? 🤮 Answer this grammar question – and then tell us all about it! ⁣ ⁣ There's more about 'used' to on our website - just click the link in our bio! 👆👆👆⁣ ⁣ #Grammar#EnglishGrammar#LearnEnglish#English

BBC Learning English

@english_bbc_learning · Post #3881 · 10.01.2026 г., 07:53

📚First Conditional (Simple & Clear) We use the first conditional to talk about real or possible situations in the present or future and their results. 🧩 Structure: If + present simple, will + base verb ✅ If I pay attention in class, I will understand everything. ➡️ Real situation → real result. #EnglishGrammar#Conditionals#LearnEnglish

BBC Learning English

@english_bbc_learning · Post #3812 · 22.12.2025 г., 13:09

👋 Learn how to use the present simple. Look at the images and complete the gap:⁠⁣ We _______ to school on Saturdays.⁣ a. does not go⁣ b. not go⁣ c. don’t go⁣ ⁣ 🤩 EXTRA: Click on our link in bio for more help with this tense. ⁣ #learnenglish#present#englishgrammar#englishtips

BBC Learning English

@english_bbc_learning · Post #3931 · 14.03.2026 г., 23:34

Mastering Prepositions of Time: IN, ON, AT! ⏰ Do you ever get confused about which preposition to use when talking about time? You're not alone! Here is a quick cheat sheet to help you remember: 🎯 AT – for specific times (e.g., mealtimes, clock times, night, the weekend) 📅ON – for days and dates (e.g., Saturday, the 8th of September) ⏳IN – for longer periods (e.g., months, seasons, years, the morning) Check out the infographic above for more examples! Test your knowledge! Take the quick quiz below and see how much you've learned. Save this post for later, and forward it to a friend who is practicing their spoken English! 🔖 #LearnEnglish#EnglishGrammar#Prepositions#EnglishTips#ESL

Journey to Fluency

@fluencyinenglish · Post #7908 · 17.02.2026 г., 19:57

Difference Between “drop out” and “be dropped out” Many people make this mistake: ❌ I was dropped out This sentence is grammatically incorrect. The correct structure is: ✅ I dropped out. Meaning: I voluntarily left or withdrew from school/university. Why “was dropped out” is wrong “Drop out” is an intransitive verb. It does not take an object, so it cannot be used in the passive voice. ❌ You cannot say: I was dropped out of university. Because dropping out is something you do yourself. Correct Usage If it was your decision: I dropped out of university. If it wasn’t your decision: Use other verbs to express that: I was expelled from university. I was forced to leave university. @fluencyinenglish #EnglishGrammar#GrammarTips#DropOut#PassiveVoice#IntransitiveVerbs#IELTSGrammar#CommonMistakes#LearnEnglish#TEFL

BBC Learning English

@english_bbc_learning · Post #3843 · 02.01.2026 г., 05:48

Do you know how and when to use ‘in’, ‘on’ and ‘at’ to talk about time? ⏰⁣ ⁣ We normally use:⁣ ⁣ at – for specific times, such as mealtimes and clock times⁣ ⁣ on – with days and dates⁣ ⁣ in – for longer periods of time, such as months, seasons and years.⁣ ⁣ Save this post for later and don’t forget to share with a friend who loves learning English! 🔖⁣ #LearnEnglish#EnglishGrammar#PrepositionsOfTime#InOnAt#GrammarTips#ESL#DailyEnglish 🛫 Advertising: @Advertise_on_Telegram

12
ПретходнаСтраница 1 од 2Следна