r/PiCodingAgent • u/whiterose0000001 • 8h ago
Question What are you using for linting and code formatting in Pi?
Hey everyone!
I'm need small help, what you guys are actually using for linting and syntax formatting in Pi.
Are you using any specific tools, extensions, or configurations to keep your code clean, consistent, and properly formatted?
Would love to hear some recommendations
7
Upvotes
4
u/funbike 7h ago edited 7h ago
I like to have a
Makefile(or similar) for all my projects, somake checks,make format,make test,make run,make buildalways do roughly the same thing across all my projects. LLMs understandmakeandMakefilevery well. More modern alternatives includejustandmise.I also like the
.editorconfigchecker, because it works for all file types. So while my regular linter and formatter can check all my code files, editorconfig can check everything else like html, css, yaml, json, etc. It's blazingly fast.Other comments ITT talk about IDE or LSP integration, which is nice, but it's troublesome to share your project with others. I rely less on IDE's anyway. I prefer Pi as my primary coding interface, and only use my IDE as a fancy file browser and viewer.
2
u/90sRehem 7h ago
In Pi Nothing, this responsibility lies in the repo of the code, and there I usually use Oxilint with customized plugins.
1
u/bankinu 6h ago
Just make a script and ask your agent to better run it everytime before commit if it wants to keep the job.
2
u/gbrennon 5h ago
hooks triggering lsp and linter to prevent agent to write shit
2
u/captainabrasive 2h ago
My super simple approach was to tell the agent what tools it has available (e.g. ruff and ty for Python) and having it update the project AGENTS.md.
1
u/Complex-Birthday-216 7h ago
I created rules plugin that runs rules in the end of the session, if there are errors - passes to the agent back
1
u/Mundane-Tiger-2374 7h ago
Mostly python for me, so ruff is the way!
1
u/0xbogon 7h ago
pi-posher is what I use.
-1
u/SrMortron 7h ago
Intellij with its MCP. Works beautifully.
-2
u/startassets 8h ago
As an author of pi-agent-ide, I use this on the daily basis
-2
u/AnlgDgtlInterface 8h ago
Pi-lens is great. Automated formatting and linting via a number of tools.