Linter in vs code?

9 views
Skip to first unread message

Jonathan Peel

unread,
Jun 1, 2026, 3:54:59 AM (3 days ago) Jun 1
to ZEN-garden
Hi team, 

I'm getting a few errors from my linter in VS Code, which is Ruff. I was wondering if there was a recommended linter for the codebase so I still have a checking process, but maybe not so strict so as to flag everything as a problem?

See screenshot for an example from `energy_system.py`.

Thanks!
Screenshot 2026-06-01 at 09.53.53.png

Christoph Funke

unread,
Jun 1, 2026, 4:04:57 AM (3 days ago) Jun 1
to ZEN-garden
Hi Jonathan,

You should use the version of Ruff that is installed by the package's dev requirements. The current version is "ruff==0.14.13". Does that help? In your screenshot, is it the linter or the typechecker (e.g. mypy) that is causing issues? Note that typechecking in ZEN-garden has not been activated yet.

Best,

Christoph

Jonathan Peel

unread,
Jun 1, 2026, 8:11:21 AM (3 days ago) Jun 1
to ZEN-garden
Hi Christoph,

Thanks for your swift response. I've managed to get my ruff to the correct version and the linter has stopped complaining :)
Additionally, I realised I also had pylance doing strict type checking, so I also disabled that since it was complaining a lot.

Best,

Jonathan

Reply all
Reply to author
Forward
0 new messages