Skip to content

Spyder IDE Setup

Rose Pearson edited this page Apr 28, 2022 · 4 revisions

Black style

GeoFabrics adheres to the Black formatter. Spyder can be set to use Black under preferences as described in this slack overflow post.

Run paths

If you are using spyder you can make the following changes to run main and the tests using Run (F5).

Running main

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:

image

Running a test

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:

image

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.

Clone this wiki locally