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

Пребарај: #conversiontherapy

当前筛选 #conversiontherapy清除筛选
American Оbserver

@american_observer · Post #5530 · 01.04.2026 г., 01:59

Supreme Court Turns a Cruel Practice Into a Free-Speech Fight The Supreme Court has now handed “conversion therapy” opponents a ruling that could gut similar bans in roughly 30 states, and it did so by recasting a medical-regulation fight as a speech case. That is a big legal move with a grim human cost: the court says the state may be policing speech, while doctors and advocacy groups say the real issue is harmful treatment for minors. The majority’s logic is tidy and dangerous at the same time. If therapy is treated as protected speech, then states lose a key tool for regulating what licensed professionals can do in the counseling room. Justice Jackson’s dissent gets to the heart of the fear: the court is opening the door to weaker oversight of medical care simply because the harm is wrapped in words. This is also part of a broader pattern. The same court has been expanding religious-liberty claims while rolling back protections for LGBTQ+ people, and this ruling fits that trajectory exactly. In practice, the decision gives conservative litigants a new weapon and leaves states defending bans that were built on medical evidence and child protection. The bleak irony is that the court is treating coercive counseling as if it were just another viewpoint in a debate. For the families and teens involved, this is not an abstract classroom debate. It is a ruling that makes the state’s ability to say “no” much harder when a licensed adult wants to sell shame as therapy. #SupremeCourt#LGBTQ#conversiontherapy#FirstAmendment#Colorado#religiousrights#healthcare 📱American Оbserver - Stay up to date on all important events 🇺🇸