Style Guides
Python
TypeScript
Editor support
VSCode
If you are using VSCode, you can use features (like format/lint on save) by installing and activating the extensions in
.vscode/extensions.json.For these extensions, we provide example settings in
.vscode/settings.example.jsonTo use this,
cp .vscode/settings.example.json .vscode/settings.jsonthen edit
.vscode/settings.jsonfollowing the comment in the file.Uncomment the line
// "flake8.path": ["conda", "run", "-n", "optinist_dev", "python", "-m", "flake8"],and set
optinist_devto your conda environment name.
Other Editors
Though automatically checked with pre-commit, you can check your code follow the guide before commit.
Run the following command to check linting and format your code.
make format