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

Резултати

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

Пребарај: #iras

当前筛选 #iras清除筛选
IRAS

@irassg · Post #725 · 22.12.2023 г., 06:30

Navigate the right GST rate to pay for transactions spanning the rate change with new mummy and her bestie! 💁‍♀️💡 A transaction is considered to span the GST rate change if one or two of the following events takes place wholly or partially on/after 1 Jan 2024: - The issuance of invoice by supplier - The receipt of payment by supplier - The delivery of goods or performance of services More info at go.gov.sg/irasgst-rc-consumers #GST#GSTRateChange#skit#iras#irassg

IRAS

@irassg · Post #723 · 20.12.2023 г., 09:10

🎵 We carry through, do what we need to do~ Yes, I’m a GST-registered business just like you 🎵 Here are 3 key things GST-registered businesses need to prepare for the 2024 GST rate change: 1) Update systems to incorporate 9% GST from 1 Jan 2024 2) Prepare price displays to reflect 9% GST from 1 Jan 2024 3) Understand transitional rules to apply the correct GST rate for transactions spanning 1 Jan 2024 Learn more at go.gov.sg/irasgst-rc-businesses #GST#GSTRateChange#iamjustlikeyou#iras#irassg

IRAS

@irassg · Post #702 · 06.12.2023 г., 04:02

Is delulu the solulu? At least, she gained some tax tips on Supplementary Retirement Scheme (SRS) contributions! 💰🤣 Grow your savings by contributing to your SRS Account today! You will be eligible for tax reliefs in Year of Assessment 2024 if you make contribution to your SRS Account by 31 Dec 2023*. SRS contributions are capped yearly at $15,300 for Singapore Citizens and Permanent Residents and $35,700 for foreigners. Do note that there is an overall cap of $80,000 on the total amount of all tax reliefs that can be claimed (including any relief on SRS contributions) for a year. Details and qualifying conditions: https://www.iras.gov.sg/taxes/individual-income-tax/basics-of-individual-income-tax/special-tax-schemes/srs-contributions *You are advised to check with your SRS bank operator about the cut-off date for SRS contributions. #taxtips#retirement#invest#skit#girlsvsguys#irassg#iras

IRAS

@irassg · Post #707 · 08.12.2023 г., 06:00

Spread some year-end cheer while saving on your taxes! 🥳✨ Enjoy tax deductions of 2.5 times the qualifying donation amount in Year of Assessment 2024 when you donate to any approved Institution of a Public Character (IPC) by 31 Dec 2023. You will not need to declare the donation amount in your Income Tax Return as tax deductions for qualifying donations will be automatically reflected in your tax assessments based on information from the IPC. Details and qualifying conditions: https://www.iras.gov.sg/taxes/other-taxes/charities/donations-tax-deductions #taxtips#donations#spreadjoy#seasonsgreetings#skit#irassg#iras

IRAS

@irassg · Post #328 · 23.12.2022 г., 02:01

#TaxTip Grow your savings by contributing to your Supplementary Retirement Scheme (SRS) Account! You will be eligible for tax reliefs in Year of Assessment 2023 if you make contribution to your SRS Account by 31 Dec 2022. SRS Contributions are capped yearly at $15,300 for Singapore Citizens and Permanent Residents and $35,700 for foreigners. Do note that there is an overall cap of $80,000 on the total amount of all tax reliefs that can be claimed (including any relief on SRS contributions) for a year. Details and qualifying conditions: https://www.iras.gov.sg/taxes/individual-income-tax/basics-of-individual-income-tax/special-tax-schemes/srs-contributions #iras#sg#taxes#taxtip#retirement#invest#reliefs

IRAS

@irassg · Post #312 · 16.12.2022 г., 02:02

#TaxTip It is never too early to prepare for your (and your loved ones’) retirement needs. Top up your own and/or those of your family members’ CPF Special/Retirement or Medisave Account by 31 Dec 2022 to enjoy the CPF Cash Top-up Relief in Year of Assessment 2023! Do note that there is an overall cap of $80,000 on the total amount of all tax reliefs that can be claimed (including any relief on CPF cash top-ups) for a year. Details and qualifying conditions: www.iras.gov.sg/taxes/individual-income-tax/basics-of-individual-income-tax/tax-reliefs-rebates-and-deductions/tax-reliefs/central-provident-fund-(cpf)-cash-top-up-relief #iras#sg#taxes#taxtip#cpf#relief#retirement

IRAS

@irassg · Post #318 · 20.12.2022 г., 02:00

#TaxTip Enjoy tax deductions of 2.5 times the qualifying donation amount in Year of Assessment 2023 when you donate to any approved Institution of a Public Character (IPC) by 31 Dec 2022! You will not need to declare the donation amount in your income tax return as tax deductions for qualifying donations will be automatically reflected in your tax assessments based on information from the IPC. Details and qualifying conditions: https://www.iras.gov.sg/taxes/other-taxes/charities/donations-tax-deductions #iras#sg#taxes#taxtip#reliefs#donate#donations

IRAS

@irassg · Post #711 · 13.12.2023 г., 05:09

Yasss to being a financially savvy kween! 🙌👑 It’s never too soon to secure the bag for your (and your fam’s) retirement 🌟 Top up your own and/or those of your family members’ CPF Special/Retirement or Medisave Account by 31 Dec 2023 to enjoy the CPF Cash Top-up Relief in Year of Assessment 2024. Do note that there is an overall cap of $80,000 on the total amount of all tax reliefs that can be claimed (including any relief on CPF Cash Top-ups) for a year. Details and qualifying conditions: https://www.iras.gov.sg/taxes/individual-income-tax/basics-of-individual-income-tax/tax-reliefs-rebates-and-deductions/tax-reliefs/central-provident-fund-(cpf)-cash-top-up-relief #taxtips#retirement#cpf#skit#asianmums#giftideas#irassg#iras

12
ПретходнаСтраница 1 од 2Следна