Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Commit 9bf974e

Browse files
committed
Set known_third_party for isort
When run as a git-hook, isort has a lot of trouble identifying third-party libraries. This adds the currently used third-party libraries explicitly in the configuration. The list was obtained by temporarily adding the seed-isort-config hook (https://github.com/asottile/seed-isort-config#seed-isort-config) Closes #13
1 parent 952e0f0 commit 9bf974e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.cfg

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ignore_directives=doctest
2020
ignore_messages=(Hyperlink target "[^"]+" is not referenced\.$)
2121
ignore_roles=cite
2222
23-
[isort]
23+
[tool:isort]
2424
known_first_party = qdyn
2525
force_single_line = False
2626
lines_after_imports = 2
@@ -29,3 +29,4 @@ use_parentheses = True
2929
multi_line_output = 3
3030
include_trailing_comma = True
3131
skip = src/qdyn/__init__.py
32+
known_third_party = click,git,matplotlib,numpy,pkg_resources,pytest,qdyn,qutip,scipy,setuptools,six,sphinx

0 commit comments

Comments
 (0)