Add contributing note about isort

master
Chris Lenk 2019-08-29 16:14:40 -04:00
parent d4bbc80777
commit 886ef8464d
1 changed files with 8 additions and 0 deletions

View File

@ -109,3 +109,11 @@ then look at the resulting report in ``htmlcov/index.html``.
All commits pushed to the ``master`` branch or submitted as a pull request are All commits pushed to the ``master`` branch or submitted as a pull request are
tested with `Travis-CI <https://travis-ci.org/oasis-open/cti-python-stix2>`_ tested with `Travis-CI <https://travis-ci.org/oasis-open/cti-python-stix2>`_
automatically. automatically.
Adding a dependency
-------------------
One of the pre-commit hooks we use in our develoment environment enforces a
consistent ordering to imports. If you need to add a new library as a dependency
please add it to the `known_third_party` section of `.isort.cfg` to make sure
the import is sorted correctly.