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

Резултати

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

Пребарај: #freedomofexpression

当前筛选 #freedomofexpression清除筛选
Hong Kong Democracy Movement

@hkdmovement · Post #6949 · 03.01.2024 г., 04:51

Media mogul Jimmy Lai, founder of Next Digital and Apple Daily, faces charges of "collusion with foreign forces" and other offenses. Prosecutors claim Lai used his media platform to incite hatred against the Hong Kong government and China. The case involves 161 articles, including Lai's columns and Apple Daily reports, urging protests and international sanctions against China. Prosecutors allege Lai contacted foreign politicians, including former US Vice President Pence and Secretary of State Pompeo, seeking sanctions. Lai pleads not guilty. Charges against Jimmy Lai for "collusion with foreign forces" are seen as baseless, stifling dissent and freedom of speech. Targeting prominent figures like Lai undermines democracy and human rights. We must condemn attempts to silence dissent. #JimmyLai#FreedomOfExpression#AppleDaily#HongKong

Hong Kong Democracy Movement

@hkdmovement · Post #7545 · 30.06.2024 г., 16:59

Hirano Uryu's denial of entry into Hong Kong further highlights the significant deterioration of freedom in the city. The restrictions on individuals expressing their views and commemorating events like the tragic incident involving Leung Kin-fai demonstrate the shrinking space for dissent and the erosion of fundamental rights. The situation underscores the concerns raised by many regarding the diminishing freedoms and the impact of national security legislation in Hong Kong. #FreedomOfExpression#DeterioratingFreedom#HongKong#NationalSecurityLaw

Hong Kong Democracy Movement

@hkdmovement · Post #7435 · 28.05.2024 г., 15:13

The recent arrests under Hong Kong's national security law serve as a reminder that no one is safe from the reach of Article 23. The apprehensions, including prominent activist Chow Hang-tung, instill fear and raise concerns about freedom of expression and the rule of law. The use of the law to target individuals and suppress dissent has a chilling effect on society. It underscores the need for continued vigilance in protecting fundamental rights and preserving the autonomy of Hong Kong. #Article23#NationalSecurityLaw#HongKong#FreedomOfExpression#RuleOfLaw https://hongkongfp.com/2024/05/28/breaking-6-arrested-under-hong-kongs-new-security-law/

Hong Kong Democracy Movement

@hkdmovement · Post #6958 · 04.01.2024 г., 12:07

Jan 3: on day 5 of #JimmyLai's trial, prosecutors claiming he directed #AppleDaily's English edition to promote "yellow" viewpoints and seek foreign sanctions. They mention Lai's Twitter account, where he followed figures like Tsai Ing-wen and Mike Pence. The judge questioned the relevance, but prosecutors argue it shows Lai's connections and state of mind. Critics see these charges as an attack on free expression. Jimmy Lai's trial highlights the concerning reality that having a Twitter account can now be used against individuals in prosecutions. The case underscores the potential risks individuals face for expressing their viewpoints and connecting with others on social media platforms. #FreedomOfExpression#freehk#freepoliticalprisoners

Hong Kong Democracy Movement

@hkdmovement · Post #8026 · 24.06.2025 г., 15:49

When a government can't name the threat, it invents one. “Soft resistance” is a vague, undefined label now being used by Hong Kong authorities to create fear rather than provide safety. Today, people in Hong Kong are more afraid of being arrested under the #NationalSecurityLaw without knowing why—just for thinking, speaking, or existing outside the approved narrative. This isn’t about stability. It’s about control. #StandWithHongKong#SoftResistance#FreedomOfExpression 當一個政府無法明確指出威脅時,它就創造一個。 「#軟對抗」這個模糊不清的概念,正在被 #香港政府 用來製造恐懼,而非保障安全。如今,#香港人 更擔心的是,在毫無明確原因的情況下,會因為一個想法、一句話,甚至什麼都沒說,而被 #國安法 拘捕。 這不是穩定,這是對思想的控制。 #言論自由

Hong Kong Democracy Movement

@hkdmovement · Post #7964 · 10.04.2025 г., 04:25

Political artist Badiucao continues to challenge authoritarian systems through his bold creativity. Recently, his billboards in Hong Kong, featuring a hidden political message quoting Chairman Mao, were removed during Art Week. Despite the gallery's accusations, Badiucao's work highlights the repression of free expression and the power of art to resist censorship. #Badiucao#FreedomOfExpression#ArtAgainstCensorship#HongKongArt 政治藝術家巴丢草以大膽的創意挑戰威權體制。他最近在香港的廣告牌作品中隱藏了毛澤東的政治語錄,卻在藝術周期間被撤下。儘管畫廊指控他提供虛假信息,巴丢草的作品突顯了言論自由的壓迫,以及藝術對抗審查的力量。 #巴丢草#言論自由#藝術對抗審查#香港藝術 https://hongkongfp.com/2025/04/03/political-artist-badiucao-says-billboards-with-his-hidden-political-message-removed-as-gallery-launches-attack/

Hong Kong Democracy Movement

@hkdmovement · Post #7872 · 18.10.2024 г., 11:23

黎智英控告《大公報》誹謗案最新進展 壹傳媒創辦人黎智英於2020年向高等法院入稟,控告《大公報》發布誹謗文章,稱其欲棄保潛逃。黎智英要求禁制該報誹謗、道歉及賠償。然而,黎方申請設陪審團的要求被法官駁回,理由是案件涉及複雜的法律及事實議題,並不適合由陪審團處理。 法官指出,主審法官可先閱讀相關文件,進一步考慮雙方陳詞,從而縮短審訊時間。黎智英還需向《大公報》支付30萬元訟費。 這樣的判決顯示,為了達到想要的結果,法院在與黎智英相關的案件中不會使用陪審團。 #黎智英#大公報#言論自由#公正司法#香港#法律#人權#民主 Jimmy Lai, founder of Next Media, filed a defamation lawsuit against Ta Kung Pao in 2020 over an article alleging he intended to abscond. Lai sought a court order to prohibit the defamation, as well as an apology and damages. However, his request for a jury trial was denied by the judge, citing the case's complex legal and factual issues. The judge noted that the presiding judge could review the documents in advance, allowing for a more efficient trial process. Lai is also required to pay HK$300,000 in legal costs to Ta Kung Pao. This ruling indicates that to achieve the desired outcome, the court will not use a jury in any cases related to Jimmy Lai. #JimmyLai#freepoliticalprisoners#FreedomOfExpression#HumanRights