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

Резултати

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

Пребарај: #badung

当前筛选 #badung清除筛选
Bali News

@balinews · Post #473 · 06.08.2025 г., 14:05

↗️ Bali raises prices for popular attractions 📰 The authorities of the Balinese district of Badung are revising the fees for visiting popular tourist locations. Ticket and parking prices at temples, waterfalls, and beaches will increase in the near future. 📍Admission prices will increase at the following sites: Taman Ayun Temple: • Foreign adults — 50,000 rupiah • Foreign children — 25,000 Uluwatu Temple (excluding evening kecak): • Foreign adults — 60,000 rupiah • Foreign children — 40,000 Pandawa Beach: • Foreign adults — 25,000 rupiah • Foreign children — 15,000 Nung Nung Waterfall is also on the list for an increase, with exact prices to be confirmed. Uniform parking rates are also being introduced: • 1,000–2,000 rupees for motorcycles • 2,000–4,000 rupees for cars • 5,000–10,000 rupees for buses and large vehicles. 🧲 This is being done to replenish the district's budget and finance infrastructure projects. #places#tourism#Badung@BaliNews

Bali News

@balinews · Post #350 · 15.03.2025 г., 05:35

🧹Badung will be cleaned up Government to tackle litter problem. 🚮 The new regent of Badung, Wayan Adi Arnawa, has made a pledge to keep the top tourist beaches clean and personally participated in a clean-up day on the Jimbaran coast. I don't want Badung to look shabby because of litter. The government will allocate a special budget to tackle the problem. ℹ️ Badung includes Changu, Seminyak, Legian, Kuta and the entire Bukit Peninsula. The official said pedestrian walkways are already being built on the beaches and coastal cafes are being renovated to make them more aesthetically pleasing and comfortable. @BaliNews #goodnews#places#Badung

Bali News

@balinews · Post #478 · 15.08.2025 г., 12:45

📰Illegal structures found in Melasti and scheduled for demolition 🏝 Eight structures in violation of zoning regulations have been identified on Melasti Beach, including beach clubs and cafes that are too close to the ocean, in a protected coastal area, and partially on municipal land. The owners have already been sent repeated official warnings, and the documents have been forwarded to the public order service for further action. 🧐 The administration's approach is now softer than in Balangan: Melasti will be “discussed and carefully studied” rather than “demolished on the spot.” #places#beaches#Badung@BaliNews

Bali News

@balinews · Post #476 · 13.08.2025 г., 13:04

🌊Strong surf damaged the Waterblow attraction in Nusa Dua 📰 High waves damaged the infrastructure of the Waterblow attraction in Nusa Dua. Ticket offices were flooded and the e-ticketing terminal was knocked out of service. 🚫 The site is closed indefinitely; authorities are inspecting the site and agreeing on further steps. ⚠️ Waves of up to 2.5–4 m are expected to continue in southern Bali in the coming days — people are asked to exercise caution near the water. #weather#places#Badung@BaliNews

Bali News

@balinews · Post #434 · 12.06.2025 г., 14:04

🪩 There will be a party at Savaya on Saturday ℹ️ Building upon her cultural heritage and her musical tastes (the artist grew up listening to artists such as Nina Simone, Bob Marley and Marvin Gaye), AWEN started to produce her unique style of Afro-house. 🧞‍♀️ It mixed electronic instrumentation with timeless melodies - and a touch of spirituality. 📲 More info and tickets (Rp 600,000) are here. #wheretogo#parties#Badung@BaliNews

Bali News

@balinews · Post #383 · 06.04.2025 г., 13:50

⭐️Electronic music star Boris Brejcha in Bali 📍 Savaya Bali 📆 May 18, 2005 ⏰ Doors Open at 1:00 pm 🔞 Entry strictly 21+ 🎟 Rp1,350,000 🪩 German DJ Boris Brejcha is known to all lovers of techno and mind-blowing parties. As part of his world tour he will be stopping by Bali. 🔎 More information and tickets here. @BaliNews #events#parties#Badung

Bali News

@balinews · Post #425 · 03.06.2025 г., 12:00

📰A new art market will open in Bali 🏺 A new art market featuring works by local artisans will open in the village of Bongkasa. The project aims to attract tourists to less popular areas. 👍 In light of the fire that destroyed the market in Ubud, the idea seems like timely support for artisans. 📆 The opening is planned for 2026. #goodnews#culture#places#Badung@BaliNews

Bali News

@balinews · Post #140 · 11.08.2024 г., 11:30

🛕The Pura Luhur Uluwatu temple has begun to be saved from collapsing into the ocean A serious crack that formed in one of the most sacred places in Bali - the cliff of the temple Pura Luhur Uluwatu - is promised to be fixed by the end of this year. For a long time it frightened the public - from the outside it seemed that the 70-meter cliff is about to collapse into the ocean. The first phase of work to repair the rift in the cliff is scheduled to be completed in December 2024. The Badung regency government has prepared a budget of Rp 78.6 billion for this purpose. @BaliNews #goodnews#places#Badung#Kuta

Cerdas Gunakan Obat

@cerdasgunakanobat · Post #2952 · 09.03.2019 г., 07:39

[SOSIALISASI GEMA CERMAT] • https://www.facebook.com/864416113651534/posts/2087373421355791/ • Sosialisasi GeMa CerMat di Kab. Badung, Bali tanggal 13 Desember 2018, menutup seluruh rangkaian kegiatan Sosialisasi GeMa CerMat tahun 2018 yang diselenggarakan oleh Direktorat Pelayanan Kefarmasian, Kemenkes RI. Kab. Badung, Bali, menjadi lokasi ke-40 pada tahun 2018, setelah diadakan di Kota Cirebon tanggal 7 Desember 2018. • Sosialisasi dihadiri oleh sekitar 270 orang peserta masyarakat dan stake holder terkait di wilayah Kab. Badung, dan 30 orang apoteker sebagai Agent of Change (AoC) GeMa CerMat Kab. Badung. Sehari sebelumnya, tanggal 12 Desember, telah diadakan Pembekalan terhadap apoteker sebagai AoC. • Acara pencanangan dan sosialisasi GeMa CerMat di Kab. Badung ini dibuka oleh Direktur Pelayanan Kefarmasian Kemenkes RI, Dinas Kesehatan Prop. Bali, dan Dinas Kesehatan Kota Kab. Badung. • Materi paparan tentang GeMa CerMat, DAGUSIBU dan Penggunaan Antibiotik Bijak diberikan oleh Peningkatan Obat Rasional, Erie Gusnellyanti, S.Si, Apt, MKM. Selanjutnya diadakan simulasi metode edukasi penggunaan obat dengan Cara Belajar Insan Aktif (CBIA). • #gemacermat#gemacermatbadung#badung#bali#cerdasgunakanobat#sosialisasigemacermat#aocgemacermat#apotekerindonesia#apoteker#apotekermuda#ppiai @ Badung, Bali, Indonesia