Skip to content

Commit 4a9479b

Browse files
committed
Configure importcheck.
1 parent dd9f5eb commit 4a9479b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[build-system]
22
requires = [ "setuptools>=40.6.0", "wheel>=0.34.2",]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.importcheck]
6+
always = ["tox_envlist"]

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ qa = mypy, lint
2626

2727
[testenv]
2828
setenv = PYTHONDEVMODE = 1
29-
commands = python --version
29+
deps = importcheck>=0.1.0
30+
commands =
31+
python --version
32+
python -m importcheck {posargs}
3033

3134
[testenv:build]
3235
skip_install = True

0 commit comments

Comments
 (0)