mistersql, to random
@mistersql@mastodon.social avatar

sounds like it can do a lot of things. It reminds me of multi-linters except it is a multi-common-build-tasks tool. (dependencies, packaging, plus other things) Like multi-linters, it farms out the work to 3rd party tools. Or a mildly opinionated build-anything tool.

I should try it out on a project to get better opinions

jtmoulia, to emacs
@jtmoulia@mstdn.social avatar

A guide on integrating #emacs + #python + #hatch using [mostly] builtin tooling and project local .dir-locals.el variables.

Specifically, this setup uses #Eglot + #pyright for live syntax checking, #pytest for code running, #MyPy for type-checking, and #IPython as the shell

Feedback would be welcome -- trying to get it robust + idiomatic.

https://jtmoulia.srht.site/guides/emacs-python-hatch/

ai6yr, to random
@ai6yr@m.ai6yr.org avatar
alatitude77, to python
@alatitude77@mastodon.social avatar
pauleveritt, to random
@pauleveritt@fosstodon.org avatar

Shame on me... I didn't know Hatch now has support for:

Documented here: https://hatch.pypa.io/dev/cli/reference/#hatch-python

mgorny, to gentoo Polish
@mgorny@pol.social avatar

Ciekawostka: jeśli masz plik .gitignore w jakimkolwiek katalogu nadrzędnym, go przeczyta. Agresywnie. Każdy jeden plik.

Zrobi to nawet wówczas, gdy .gitignore jest poza repozytorium.

Zrobi to nawet wówczas, jeżeli nie ma żadnego repozytorium gita!

Zrobi to nawet wówczas, gdy .gitignore nakazuje ignorować katalog z twoją paczką, czyli kiedy w ogóle nie powinien być traktowany jako część repozytorium.

W tym ostatnim przypadku, zaskoczy cię tworząc archiwum wheel bez jakiegokolwiek pliku .py. I tak, oczywiście, musieliśmy rozkminiać dziwaczny błąd z tego powodu.

Wynajdywanie koła na nowo zwykle nie jest dobrym pomysłem.

https://bugs.gentoo.org/918677
https://github.com/pypa/hatch/issues/1069

AlexVoss, to random
@AlexVoss@fosstodon.org avatar

Python question: is there an OS-neutral (as in: works on Linux, MacOS, Windoze) way to natively install a specific version of python and then a virtual environment on top of that?

Can I get all of that from a simple command-line call like make-env -p 3.9 -pip requirements.txt? I am thinking that Anaconda/Mamba/Micromamba can do it. Any other contenders? A lot of things that came to my mind use the Linux Subsystem on Windows and/or VMs on MacOS, so not what I am looking for. Ta.

hugovk,
@hugovk@mastodon.social avatar

@AlexVoss I've not really used it, but hatch python install 3.9 might be a start?

https://hatch.pypa.io/dev/cli/reference/#hatch-python-install

hugovk,
@hugovk@mastodon.social avatar

@AlexVoss You're welcome! The author of Hatch, Ofek Lev, isn't on Mastodon but is helpful on issue trackers and in the PyPA Discord.

mikemathia, to random
@mikemathia@ioc.exchange avatar
oliverandrich, to python
@oliverandrich@fosstodon.org avatar

I have a problem with in one of my projects. If I run my test suite inside a test environment, I get the follow message. If I run it in the default environment, everything runs fine. Why do I have to add the environment to my .gitignore?

In another problem I don’t get this message. This is kind of confusing.

oliverandrich,
@oliverandrich@fosstodon.org avatar

Solving this problem took a while, because I thought it was caused by or . But in the end, out of desperation, I searched with ripgrep in the complete virtualenv. Django-fastdev is the origin of this message.

oliverandrich, to python
@oliverandrich@fosstodon.org avatar

Switched django-tailwind-cli to hatch. And I really like the results. Especially the different environments for development, testing, linting and docs is really nice.

https://github.com/oliverandrich/django-tailwind-cli/blob/main/pyproject.toml

orowith2os, to programming

folks: Any tips for learning it, coming from ?

I'm kind of reliant on the strictness of Rust, especially when it comes to using the wrong types and everything. Some way to force me to follow a similar style would be appreciated.

I'm also very reliant on Cargo, it's so clean and integrates everything nicely. I'm not sure if there's an equivalent for Python that matches Cargo.

also seems interesting for this, I just saw a toot from @airtower that might be useful: https://queer.af/@airtower/110480293814667017

Tips for how to occasionally easily sprinkle in some actual Rust would be nice too.

I will only be developing for .

opensoul, to random Italian
@opensoul@mastodon.uno avatar

It's there any hatching tool or extension or tutorial to create simple (for architecture like diagonal stripes - editable) in ?

I've tried with Patterns->Object to pattern but he says to use the node tool but with this tool I can only chante the stroke form, not the pattern. Any Idea?

opensuse, to opensource
@opensuse@fosstodon.org avatar

There is a @fedora planned for this year's @opensuse Conference. Join a great bunch of people with shared interest to contribute to projects like (thx 4 sponsoring) & . https://events.opensuse.org/conferences/oSC23/program/proposals/4196

offby1, to random
@offby1@wandering.shop avatar

I'm a bit sad that the PyPA folks who work on are so responsive to bug reports, because I had thought to maybe try fix the bug I tripped over in the sprints, but instead they've already released a fix.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines