Skip to content

Commit

Permalink
docs: tell devs how to get spellright to work in VisualStudio
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
  • Loading branch information
nhoening committed May 4, 2023
1 parent 1979d88 commit 5ad4c69
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .vscode/spellright.dict
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,4 @@ deserializing
kwargs
fsdomain
filepath
spellright
21 changes: 19 additions & 2 deletions documentation/dev/introduction.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.. _developing:



Developing for FlexMeasures
===========================

Expand All @@ -27,6 +28,7 @@ Using a virtual environment is best practice for Python developers. We also stro
an `Anaconda distribution <https://conda.io/docs/user-guide/tasks/manage-environments.html>`_ as base with ``conda create -n flexmeasures-venv python=3.10``.
* Activate it, e.g.: ``source flexmeasures-venv/bin/activate``


Download FlexMeasures
^^^^^^^^^^^^^^^^^^^^^^^
Clone the `FlexMeasures repository <https://github.com/FlexMeasures/flexmeasures.git>`_ from GitHub.
Expand All @@ -35,8 +37,6 @@ Clone the `FlexMeasures repository <https://github.com/FlexMeasures/flexmeasures
$ git clone https://github.com/FlexMeasures/flexmeasures.git
.. note:: Are you using Visual Studio Code? Then the code you just cloned also contains the editor configuration (part of) our team is using!

Dependencies
^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -176,6 +176,23 @@ If ``flake8``, ``black`` or ``mypy`` propose changes to any file, the commit is
The changes proposed by ``black`` are implemented automatically (you can review them with `git diff`). Some of them might even resolve the ``flake8`` warnings :)


Using Visual Studio, including spell checking
----------------------------------------------

Are you using Visual Studio Code? Then the code you just cloned also contains the editor configuration (part of) our team is using (see `.vscode`)!

We recommend to install the flake8 and spellright extensions.

For the latter, the FlexMeasures repository contains our project dictionary. Here are steps to link main dictionaries, which usually work on a Linux system:

.. code-block:: bash
$ mkdir $HOME/.config/Code/Dictionaries
$ ln -s /usr/share/hunspell/* ~/.config/Code/Dictionaries
Consult the extension's Readme for other systems.



A hint about using notebooks
---------------
Expand Down

0 comments on commit 5ad4c69

Please sign in to comment.