We recommend working on a feature branch and pull request from there.
uv,PyCharm(recommended).
Make sure your environment contains all the updated versions of the dependencies.
From an OpenSquirrel checkout:
$ uv sync
And that you base your feature branch off an updated develop.
$ git checkout develop
$ git fetch origin
$ git pull
$ git branch <feature branch name>
Make sure the tests and the following linters pass.
Using tox (started from an OpenSquirrel checkout):
$ tox -e fix,type,test
You can choose the Python interpreter from the uv environment.
- Go to
Settings>Project: OpenSquirrel>Python Interpreter. - Click on
Add Interpeter, and then selectAdd Local Interpreter. - Select
uv Environment, and thenExisting environment. - Click on
...to navigate to theInterpreterbinary.
To run/debug all tests:
- Right-click on the
testsfolder of the Project tree. - Click
Run 'pytest' in testsorDebug 'pytest' in tests.
This will also create a Run/Debug Configuration.
If breakpoints are not hit during debugging:
- Go to
Run/Debug Configurations. - Add
--no-covin theAdditional argumentstext box.
This issue may be due to the code coverage module hijacking the tracing mechanism (check this link for a more detailed explanation).