Мы используем 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
Dear Colleagues, I am thrilled to announce that I have successfully passed the AI Governance Professional certification exam from the International Association of Privacy Professionals (AIGP/IAPP).
This comprehensive exam covered a wide range of topics, from the technological foundations of AI systems and their lifecycles to the ethical, risk management, and legal considerations surrounding the development and deployment of AI systems.
I am committed to continuing my learning in this area and sharing news and valuable resources with you.
#IAPP#AIGP
AIGP 2025 Update: Streamlining AI Governance Certification for Real-World Impact
The IAPP has unveiled the latest version of its AIGP Body of Knowledge (BoK), effective for exams through February 2, 2025, offering a clearer, more flexible, and practical approach to AI governance certification. Simplified to four domains, the update places new emphasis on foundational principles, ensuring that certification aligns with the most relevant and influential legal frameworks worldwide.
This streamlined version is highly practical, designed to address the current responsibilities AI governance professionals encounter, not merely theoretical questions. Furthermore, Domains III and IV now separate the roles of developers and deployers, a crucial distinction reflecting how laws and standards are evolving in the field.
By balancing legal and technical insights, the new AIGP BoK solidifies its standing as the essential credential for those committed to responsible AI governance.
#AIGP#AIGovernance#LegalTech#ResponsibleAI#IAPP
IAPP Releases Comprehensive Report on AI Governance in Practice
The International Association of Privacy Professionals (IAPP) has released a new report on AI Governance in Practice, providing key insights into the evolving field of AI governance.
The report offers a foundational overview of AI, detailing its development and essential terminology. This approach allows anyone to grasp the basics and advance in the field. It includes a thorough inventory of AI risks, particularly data-centric ones, and offers practical strategies for managing them. Additionally, the report cites leading resources, including laws, regulations, and frameworks like the NIST AI RMF, providing a strong basis for deeper exploration.
Moreover, the report highlights various industry examples to contextualize theoretical concepts. For those preparing for the AI governance exam, the report aligns well with the AIGP Body of Knowledge and covers numerous topics likely to be tested.
#AI#AIGovernance#DataPrivacy#IAPP#AIGP
ISO Releases Free AI Governance Standard
The International Organization for Standardization (ISO), a prominent NGO known for creating industry standards, has made the important ISO/IEC 22989 standard publicly available for free. This standard addresses a wide range of AI governance topics, providing valuable guidelines for the responsible development and deployment of AI technologies.
ISO/IEC 22989 covers essential aspects of AI governance, including ethical considerations, risk management, and compliance requirements. It provides standardized concepts and terminology to help stakeholders understand and adopt AI technology effectively. This document is designed for a wide audience, including both experts and non-practitioners, offering insights into AI’s interdisciplinary nature, which encompasses computer science, data science, natural sciences, humanities, mathematics, and social sciences.
By making this standard freely accessible, ISO aims to promote the widespread adoption of responsible AI practices, ensuring that AI systems are trustworthy, robust, resilient, reliable, accurate, safe, secure, and private.
You can find ISO/IEC 22989 and other publicly avalable standards here.
#ISO#AIGovernance#AIGP#AI#Ethics#AICompliance#Technology#Innovation