isort
=====
We're using `isort `_ to sort the Python ``import`` statements.
isort config
------------
Please have a look at the `isort config `_ for all configured options.
.. hint::
To see all available configuration options, have a look at the `isort documentation `_.
isort Makefile
--------------
To run ``isort`` in your project, use the following ``Makefile`` targets:
.. code-block:: Makefile
LINTER_CONFIGS = https://git.confirm.ch/confirm/guidelines/raw/master/configs
isort:
curl -sSfLo .isort.cfg $(LINTER_CONFIGS)/isort.cfg
isort $(SOURCE_DIR)
test-isort:
curl -sSfLo .isort.cfg $(LINTER_CONFIGS)/isort.cfg
isort -c --diff $(SOURCE_DIR)