-
Notifications
You must be signed in to change notification settings - Fork 11
Spyder IDE Setup
GeoFabrics
adheres to the Black formatter. Spyder can be set to use Black under preferences as described in this slack overflow post.
If you are using spyder you can make the following changes to run main and the tests using Run (F5).
Go to 'Run>Configuration per file...' and check the Command line options under General settings. Enter the following:
--instructions full\path\to\your\instruction.json
See image below:
Go to 'Run>Configuration per file...' and check the The following directory under Working directory settings and specify the root of the repository with no quotes. Do this for each Python test file (usually one per test folder)
full\path\to\the\repository\root
See image below:
If you get an module import error for geofabrics module when running a test, try select 'Execute in a dedicated console' under the 'Console' section of the 'Run>Configuration per file...' window.