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

Пребарај: #votingrights

当前筛选 #votingrights清除筛选
America 🇺🇸 News & Politics

@America · Post #10399 · 19.03.2026 г., 13:06

🏛️🇺🇸SENATE LAUNCHES VOTING RIGHTS SHOWDOWN 🔹 Republicans force SAVE America Act debate requiring citizenship proof + voter ID nationwide — marathon talkathon begins 🗳️ 🔹 Democrats BLOCK with 47-53 vote: Murkowski (R-Alaska) defects, calls it voter suppression targeting 20M citizens ⚖️ 🔹 Trump threatens GOP senators: Vote YES or lose my endorsement, but bill faces impossible 60-vote filibuster 🔥 🔹 Key provisions: Mail-in voting restrictions, citizenship proof for registration, trans sports bans included 📋 GOP puts Dems on record ahead of midterms, but SAVE Act is DOA without bipartisan support 💀 #USNews#VotingRights @america

America 🇺🇸 News & Politics

@America · Post #10636 · 11.05.2026 г., 13:04

⚖️🗳️ALABAMA GOP RACES TO REDRAW HOUSE MAPS BEFORE 2026 🔹 Special session passes bills for NEW House primaries if courts approve GOP maps 📋⚡ 🔹 Target: Flip Democratic Rep. Shomari Figures' AL-02 seat back to Republican 🔄 🔹 Would pack Black voters into fewer districts despite 27% of state population 👥 🔹 Gov. Kay Ivey: "Alabama stands ready to quickly act" on favorable rulings 🏛️ Democrats call it a "power grab echoing Jim Crow" — but GOP says Alabama's Republican tilt should match its maps! 11th Circuit decision could flip House control! ⚖️🔥🇺🇸 #Alabama#Redistricting#VotingRights @america

American Оbserver

@american_observer · Post #5232 · 27.02.2026 г., 01:01

🗳 The Emergency Isn’t the Election. It’s the President. Pro‑Trump operatives are road‑testing a legal doomsday device: a draft executive order that declares China interfered in the 2020 election and uses that as the basis for a new “national emergency” giving Trump direct power over how Americans vote. The 17‑page draft, circulated by activists who say they’re in touch with the White House, envisions banning mail ballots and voting machines nationwide on “national security” grounds — overriding rules the Constitution leaves to states and Congress. The theory is simple and dangerous. If foreign actors allegedly touched election infrastructure, the commander in chief supposedly gets to treat voting rules like sanctions policy or wartime export controls. The lawyers pushing this, from Peter Ticktin to conspiracy veteran Jerome Corsi, openly concede the president has no normal authority to run elections. Their answer is to manufacture a permanent emergency in which he does, stretching a 2018 sanctions order on foreign interference — originally used to hit Russian and Iranian outfits — into a pretext for telling Arizona or Georgia who can vote and how. Underneath the pseudo‑constitutional gloss, it’s the same “Stop the Steal” fantasy with a national‑security badge pinned on. U.S. intelligence already concluded that China considered but did not carry out a 2020 influence operation, and every serious audit and recount, including the infamous Arizona “bamboo fibers” circus, reaffirmed Biden’s win. That hasn’t stopped Tulsi Gabbard’s intelligence shop from staging high‑visibility “reviews” of old ballots and machines, or Trump from promising an “irrefutable” legal argument he’ll drop as an executive order if Congress refuses to pass his voter‑ID and anti–mail voting bill. The playbook is out in the open: invent a foreign plot, declare it an “unusual and extraordinary threat,” then use emergency powers meant for sanctions and war to reach into domestic politics and rewrite the rules in the middle of the game. Courts have already blocked chunks of Trump’s last election order. Now the same logic is being rebuilt, wrapped tighter in the flag and stamped “national security” so judges and the public feel more pressure to look the other way. The full Trump doctrine fits in one Iran‑and‑China‑flavored scenario: if tomorrow the U.S. slides into a real shooting war with Beijing, a standing “national emergency” over elections becomes a loaded weapon on the Resolute Desk. It’s not hard to imagine Trump arguing you can’t change the commander in chief during a war, that normal voting is too “vulnerable,” that national security demands a “temporary” pause or postponement — the same logic Zelensky used to delay elections under bombardment, turned into a tool for a man who’s spent six years insisting any vote he doesn’t control is illegitimate. At that point, the ballot box isn’t a sacred institution. It’s just another system the president can shut down “for your own protection.” #Trump#elections#executiveOrder#emergency#China#votingRights#democracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Hong Kong Democracy Movement

@hkdmovement · Post #7445 · 31.05.2024 г., 21:19

In a deeply troubling development, 14 Hong Kong democrats have been found guilty while 2 were acquitted in an unfair trial that lacked a jury and involved judges appointed by the government. This landmark national security case not only undermines citizens' voting rights but also raises serious doubts about the impartiality and fairness of the proceedings. The absence of a jury denies defendants their right to a trial by their peers, further eroding the principles of justice. Upholding democratic values and safeguarding individual rights must remain a top priority. #HongKong#UnfairTrial#NoJury#AppointedJudges#VotingRights#NationalSecurityCase#JusticeUnderThreat https://hongkongfp.com/2024/05/30/breaking-14-hong-kong-democrats-convicted-2-cleared-of-conspiring-to-commit-subversion-in-landmark-national-security-trial/