jtmoulia, to emacs
@jtmoulia@mstdn.social avatar

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

Specifically, this setup uses + for live syntax checking, for code running, for type-checking, and as the shell

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

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

governa, to python
@governa@fosstodon.org avatar

: A Static Type Checker for (Install + Use) :python:

https://linuxtldr.com/installing-pyright/

czbr, to emacs

after two days of googling and digging yt, all I get that there is around zero guides for #emacs as #python ide with all that #emacs29 builtin features like tree-sitter and eglot respecting venvs :blobfoxangry:

so vscode seems like only working option :revblobfoxtableflip:

and there is #emacs30 around the corner…

czbr,

@mykhaylo any good candidate article from the top of your head? my biggest success for now — #eglot uses python-ts-mode and #pyright, but only with system python, ignoring what I set pyrightconfig.json or when running emacs inside activated venv.

partizan, to python

Turns out using func(**kwargs)becomes very inconvinient, when you're using type-checking.

Pyright 1.1.312 landed a change:

> ... The new behavior matches that of mypy and assumes that the unpacked dict may supply arguments for all otherwise-unmatched keyword parameters even if they have default argument values.

https://github.com/microsoft/pyright/issues/5545

And now i need # type: ignore for each **kwargs.

@hynek any ideas how to approach this?

Or maybe someone on the ?

partizan,

@ambv so, what do you think about this problem?

It also behaves the same way in mypy. But here bug is not closed, and i'm hoping it can be fixed.

https://github.com/python/mypy/issues/11583

ambv, to python
@ambv@mastodon.social avatar

Anybody found a way to make the type checker understand Click decorators?

understands them just fine.

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