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

Пребарај: #automatedsystems

当前筛选 #automatedsystems清除筛选
AI & Law

@ai_and_law · Post #286 · 16.04.2024 г., 07:04

US Federal Agencies Issue Joint Statement on Automated Systems On April 3, 2024, several US federal agencies released a joint statement on the Enforcement of Civil Rights, Fair Competition, Consumer Protection, and Equal Opportunity Laws in Automated Systems. Signatories include leaders from the EEOC, Consumer Financial Protection Bureau, Department of Justice, Federal Trade Commission, Department of Education, Department of Health and Human Services, Department of Homeland Security, Department of Housing and Urban Development, and Department of Labor. The statement underscores the commitment of federal agencies to enforce legal protections applicable to automated systems, defined as software and algorithmic processes, including AI, used to automate workflows and decision-making. Emphasizing the dual objectives of monitoring automated tools' evolution and fostering responsible innovation, agencies reaffirm the relevance of existing laws to automated systems. They stress their role in ensuring compliance with these laws during system development. This follows previous efforts by the EEOC and other agencies to address discrimination and bias in automated systems. The expanded participation in this year's statement reflects the government's heightened focus on regulating automated systems and enforcing relevant laws. The statement emphasizes that AI and automated systems fall under existing laws, dispelling the notion that their "black box" nature exempts them from compliance. It identifies potential sources of unlawful discrimination or bias, including skewed training data, lack of transparency, and inadequate consideration of social context during design and use. Compliance with existing and AI-specific laws is paramount for fostering trust and safe AI innovation, as highlighted in the joint statement. #automatedsystems#AI#AIcompliance