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

Резултати

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

Пребарај: #axisjapan

当前筛选 #axisjapan清除筛选

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova (Moscow, November 14, 2025) 🔹#KievRegimeCrimes 🔹Ukraine crisis 🔹Moldovan government’s decision to denounce seven CIS agreements 🔹Developments in El Fasher, Sudan 🔹The US counter-narcotics policy in Latin America 🔹Anti-Russian conference in Dublin 🔹G7 Foreign Ministers’ Meeting in Canada 📰Read 📺Watch #KievRegimeCrimes The neo-Nazi regime in Kiev continues to terrorise civilians in Russia. Over the past week, 53 Russian citizens suffered from artillery shelling and drone strikes, with 8 people killed and 45 injured, including six children. Russian courts continue to hand down sentences to Ukrainian neo-Nazis and mercenaries. In absentia, mercenaries from Georgia, Colombia, and the Czech Republic who participated in combat on the side of the Ukrainian Armed Forces have been sentenced to 28, 13.5, and 13 years in prison. #Ireland#EU#Militarisation Militaristic rhetoric of the [Brussels bureaucracy] finds fertile ground in Dublin, where the ruling coalition <…> is pursuing a course to revise constitutional restrictions on the participation of Irish service members in overseas missions. The Irish run the risk of becoming pawns in reckless geopolitical games of the Westerners (Anglo-Saxons), who are clearly acting against Russia, with all the negative consequences for [Ireland] that this entails. #US#LatinAmerica Since September 2025, we have been witnessing an unprecedented military campaign launched by Washington in Latin America under the pretext of allegedly combating drug-trafficking routes into the United States. We are extremely concerned by the military methods chosen by the United States to address this issue, which amount to little more than blatant interference in the internal affairs of Latin American states. We firmly oppose the use of force or the threat of force to interfere in internal affairs under various pretexts, including counter-narcotics operations. #AxisJapan#WarCrimes#NoStatuteOfLimitations We continue our work on disclosing information about the crimes of Japanese militarism. We have repeatedly emphasised that these crimes have no statute of limitations. Procedural actions aimed at bringing all those responsible to justice continue to this day. Between March and June, the Prosecutor General’s Office of the Russian Federation adopted decisions annulling the conclusions issued in the 1980s–2000s that had granted rehabilitation to 24 Japanese citizens. Following the review of court rulings in cassation and supervisory instances, it was established that these individuals are not subject to rehabilitation. Their guilt has been fully proven. #US#Tariffs From an economic standpoint, the introduction of 500% tariffs on goods from third countries that purchase Russian oil and gas seems absurd. This is tantamount to the discontinuation of all trade relations between countries, as such a tariff rate is prohibitive. Russian energy resources are supplied to dozens of states around the world, including Europe, the Asia-Pacific region, China, and India. It is downright impossible to substitute such volumes of oil and natural gas on the global market within reasonable timeframes. Those who call for [such measures] are likely unaware of the negative consequences this would have both for the United States itself and for the global economy as a whole. Moreover, such a step would be a gross violation of international trade law.