Ruff: Python linter and code formatter written in Rust
Link: https://github.com/astral-sh/ruff
Discussion: https://news.ycombinator.com/item?id=42775029
Magnetron is a minimalist machine learning framework built entirely from scratch.
https://github.com/MarioSieg/magnetron
Discussions: https://discu.eu/q/https://github.com/MarioSieg/magnetron
Dependent breaking pytest's
https://blog.danwald.me/dependent-breaking-pytests?ref=twitter-share
🌘 GitHub - astral-sh/ruff: 一個以 Rust 編寫的極速 Python 程式碼檢查器與格式化工具
➤ 一個極速的程式碼檢查與格式化解決方案
✤ https://github.com/astral-sh/ruff
Ruff 是一個極速的 Python 程式碼檢查器和格式化工具,使用 Rust 編寫,速度比現有工具如 Flake8 和 Black 快 10-100 倍,支援多種功能並具備內建快取與錯誤修正能力。
+ 這個工具看起來非常值得一試,尤其是快速檢查大量代碼的時候!
+ 速度如此驚人,真是程式開發中的一大突破!
#Python 開發工具
@barefootstache Yeah the #Python ecosystem has a bunch of options for development tools that do various things. pyenv, venv, and virtualenv in particular are not at all meant to do the same thing as Poetry. The closest equivalents to Poetry are things like hatch, flit, and pdm, and kind of uv as well, although it's a little complicated because Poetry does several different things and I don't believe any of those tools are an exact equivalent for all of the things Poetry does.
You might find this an interesting read: https://alpopkes.com/posts/python/packaging_tools/
The landscape of packaging tools has changed somewhat since then, e.g. rye has been absorbed into uv, but I think most of it is still fairly accurate. And the point of reading this is not so much to understand which specific tool does what, it's to understand the different tasks that Python has tools for and how you can cover them using one tool or multiple different tools working together, whatever you like.
Atak na łańcuch dostaw – na celowniku pakiet Pythona i serwery Discord
Badacze z firmy Socket opisali analizę złośliwego pakiet PyPI, który na celownik wziął programistów i twórców botów wykorzystujących Pythona do integracji z Discord. Pakiet o nazwie pycord-self imitował istniejący prawdziwy pakiet discord.py-self. Złośliwy odpowiednik pojawił się w czerwcu 2024 i został od tego czasu pobrany blisko 900 razy. TLDR: Autorzy złośliwego pakietu zadbali...
#WBiegu #Discord #Pypi #Python #Supplychain
https://sekurak.pl/atak-na-lancuch-dostaw-na-celowniku-pakiet-pythona-i-serwery-discord/
After programming a good 2 months in #python finally found the tool #poetry which is quite similar to how #nodejs bundles libraries into a directory either locally or globally in the cache directory.
I have tried the other tools from #pyenv to #venv and/or #virtualenv. Where I thought they were used to deal with library dependency management only to realize that they are more like #nvm.
I did use #conda for some time, though preferred a python only solution. I do realize that poetry won't resolve all issues and might need to look into to containerization later on, though for the time period it looks like a good solution.
I just enjoyed this design patterns tour from brandon_rhodes@mastodon.social. It gives a modern view of all 23 patterns from the original 1994 book.
https://www.youtube.com/watch?v=pGq7Cr2ekVM
The problem is I want to "have my cake and eat it too". I want to pip install a package that will copy a .jar file for my students (yeah I know, a Java file...) but I don't want to deal with packaging and maintaining the thing on PyPI 🤷♂️#Python (you can use some Java libraries made for #Processing with #py5)
Burned at least an hour I didn't have trying to get tkinter to run inside PyCharm.
What eventually worked: uninstall the flatpak version of PyCharm that Ubuntu's default "software" app offers and get one directly from JetBrains.
Once again, all computer problems are solved with some variant of "turn it off and back on again".
#python #tkinter #pycharm #ubuntu
Python Implicit Int and Float Data Type Conversion #python #pythontips #datascience #datanalytics
Ideas how to support Tailwind CSS 4.x in django-tailwind-cli:
https://andrich.me/2025/01/20/ideas-how-to-support-tailwind.html