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

Резултати

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

Пребарај: #euai

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

@ai_and_law · Post #720 · 10.12.2025 г., 08:04

🇪🇺EU FRA Flags Rights Risks in High-Risk AI Deployment The EU Agency for Fundamental Rights has released a report showing that many developers and deployers of high-risk AI systems lack the knowledge or tools to mitigate impacts on fundamental rights. The assessment covers the use of such systems in asylum procedures, education, employment, law enforcement, and the administration of public benefits: areas where algorithmic decisions can directly affect access to essential services and legal protections. The FRA recommends expanding the definition of AI to better reflect fundamental-rights considerations and issuing clear guidance on how to conduct impact assessments. According to the report, these steps are necessary to ensure that high-risk AI systems are developed and deployed in ways that do not compromise individuals’ rights across critical public domains. #AIandLaw#FundamentalRights#EUAI#AIRegulation

AI & Law

@ai_and_law · Post #436 · 06.11.2024 г., 08:04

Strengthening the EU’s AI Leadership Through Investment and Strategic Governance The EU Council has endorsed the European Court of Auditors’ call to elevate AI ambitions within the EU, emphasizing increased, targeted investments and enhanced governance. Recognizing AI’s potential to drive Europe’s global competitiveness, the Council urges a focus on fostering AI talent and creating an ecosystem built on excellence and trust. Moreover, the Council highlights the importance of considering environmental impacts, especially in energy efficiency and the reliability of the hardware supply chain, as the EU moves forward with AI policies. By reinforcing collaboration with member states and international partners, the EU aims to position itself as a global leader and benchmark in AI governance. #AIGovernance#EUAI#SustainableAI #

AI & Law

@ai_and_law · Post #761 · 10.02.2026 г., 08:04

🇪🇺European Parliament Pushes New Copyright Safeguards for AI The European Parliament’s Committee on Legal Affairs has approved an own-initiative report proposing new measures to strengthen copyright protection in the context of generative AI. The proposals include mandatory transparency obligations on training data practices for all generative AI systems placed on the EU market. MEPs also call for remuneration mechanisms for rightsholders and the development of voluntary, sector-specific collective licensing agreements. The report is not legally binding but signals political direction and will be submitted for a vote by the full Parliament during the March plenary session. #AIandCopyright#EUAI#GenerativeAI#CopyrightLaw#AIRegulation

AI & Law

@ai_and_law · Post #73 · 02.08.2023 г., 07:04

Leading the Way in Responsible AI: The EU's Vital Opportunity Hello, AI enthusiasts! Today, we share a policy brief by Pegah Maham and Sabrina Küspert from the Stiftung Neue Verantwortung. They highlight the EU's significant chance to take the lead in responsible AI development through the AI Act and beyond. But to seize this opportunity, understanding the risks associated with general-purpose AI models is essential. 🔹 Risks from Unreliability: One major concern is the lack of control over AI models' behavior. This unreliability could lead to serious issues like discrimination and stereotype reproduction, spreading misinformation, and violating individual privacy. 🔹 Misuse and Dual-Use AI Models: The dual-use nature of some AI models poses another challenge. While they offer immense benefits, they can also be misused by malicious actors for cybercrime, biosecurity threats, and politically motivated purposes. 🔹 Systemic Risks: As AI rapidly integrates into our society, systemic risks emerge. These risks include economic power concentration and inequality, ideological homogenization, and disruptions from the lagging adaptation of society. By comprehending and addressing these risks, the EU can establish itself as a global leader in responsible AI development. #ResponsibleAI#AIRegulation#AIAct#AIChallenges#EUAI#TechPolicy#DigitalFuture#AICommunity