Welcome!
The Anvil IDE has Ruff built in for linting and auto-formatting (You can Press Ctrl+Alt+M for checking linting messages and Shift+Alt+F for auto-formatting the current file)
You can use your own IDE locally by git cloning it:
From a git perspective, you would:
Clone the Anvil app to your local machine (or pull from Anvil to update it)
Make changes to the repo on your local machine (adding files, etc)
Commit and push those changes back to Anvil
Depending on what you’re doing in #2, you may or may not have any luck. I’m sure there are things you could do that would break the Anvil app, just as there are things you could do that would not get you what you wanted. But at least you could always revert to the previous…
For testing, here are some posts:
Hi @mrh ,
Certainly! This topic was featured in last week’s Anvil User Group meeting, with several community presenters sharing their approaches, and our own @stucork talking about how we do end-to-end testing of Anvil itself. An official guide to end-to-end testing in Anvil is on our TODO list, but we’ve been a bit busy lately – so here’s a quick write-up. The simple summary is that you can mostly test Anvil like any other web application, with browser-based front end tests and pytest an…
I’ve been thinking about integrating testing into anvil and the headache of local + online development was driving me crazy. So, I started thinking, could I just make a simple test suite in anvil?
With a couple hours of playing around I’ve got:
Basic pytest test naming convention and assert based tests
Automatic collection and running of tests
Testing can be started from server console REPL (or any Anvil way)
Dependency app anvil_testing for running tests
Test directory
Automatic test disco…
2 Likes